hello evrybody,
i am writing a program that should connect to a microsoft access
what should i do to connect to such database?
note that i wrote this code:
db.setDatabaseName("DRIVER={Microsoft Access Driver (*.mdb)};FIL={MS Access};DBQ=book.mdb");
if(db.open())
QSqlDatabase db = QSqlDatabase::addDatabase("QODBC");
db.setDatabaseName("DRIVER={Microsoft Access Driver (*.mdb)};FIL={MS Access};DBQ=book.mdb");
if(db.open())
QMessageBox::warning(this, "opened","successful");
To copy to clipboard, switch view to plain text mode
and every thing works fine and the program is compiled successfully but
when i execute the program the message that indicate to the database is opend does not appear it means that the database can not be opened
should i do some thing to the windows OS or install some thing to let me
connect to ms Access database???
thank you...
Bookmarks