musa
May 19th, 1999, 06:36 AM
Hi friends,
I have got some problem with accessing the Access Database with VC.
The problem is:
In VB, if you want to open a database, you can use following two method.
1. OpenDatabase
2. Dim myDB as Database
Set myDB = CurrentDB
where CurrentDB is a MS Access Function and it gives you the currently opened database in MS Access. After this you can use myDB for it's normal operation. With CurrentDB, you need not know the name of the database which is opened in Access.
But VC does not provide any thing such that we can directly access the database which is opened in Access.
I want to access a MS Access database which is opened in MS Access through my VC Application and I don't want to use 'Open' call of the CDaoDatabase class because open call will open the database once again.
So can anyone help me out.
Musa
I have got some problem with accessing the Access Database with VC.
The problem is:
In VB, if you want to open a database, you can use following two method.
1. OpenDatabase
2. Dim myDB as Database
Set myDB = CurrentDB
where CurrentDB is a MS Access Function and it gives you the currently opened database in MS Access. After this you can use myDB for it's normal operation. With CurrentDB, you need not know the name of the database which is opened in Access.
But VC does not provide any thing such that we can directly access the database which is opened in Access.
I want to access a MS Access database which is opened in MS Access through my VC Application and I don't want to use 'Open' call of the CDaoDatabase class because open call will open the database once again.
So can anyone help me out.
Musa