CDatabase
Database
1
Posts
1
Posters
0
Views
1
Watching
-
hello @all, i connected my mfc program and an access database with ODBC.
CDatabase db; db.Open(_T( "MyDatabase" ), FALSE, FALSE, _T( "ODBC"));
the ODBC driver of my database is called 'MyDatabase'. but when i use this code, the database is not selected. i must select it myself! what must i change to select my odbc driver from the program (i have to do nothing, after i start the program)?:~ thanks mfc