CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ole automation with MS Access '97, again
Hello All,
Thanks for the earlier reply's.
I've got it working with BDE.
Does anybody know how to launch
a specific table or form in Access '97
with OLE Automation????
Here's a code snippet:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Variant MSAccess;
try
{
MSAccess = Variant::CreateObject("Access.Application.8"); //OKE
MSAccess.OleProcedure("OpenCurrentDatabase", "ernesto.mdb"); //OKE
MSAccess.OleProcedure("DoCmd", "OpenForm", "Klanten"); //WRONG
Everywhere i read about ole automation one says it's so
great?!. But in no c++builder book is an example
(well besides the standard MS-Word ones with word basic, o.a. C++
builder Howto and TY C++builder)
Ernesto Laban
W Komornicki's Home Page |
Main Index |
Thread Index