///////////////////////////////////////////////////////////////////////////////
int main(int argc, char ** argv)
{
// Open connection.
mgDb.setHostName("localhost");
mgDb.setDatabaseName("DRIVER={Microsoft Access Driver (*.mdb)};FIL={MS Access};DBQ=MissileLogDB_USMTF.mda");
if(mgDb.open() == false)
{
qDebug() << "ODBC::open() : error opening connection : "
<< mgDb.lastError().text() << "\n";
}
for(int i=0;i<list.size(); ++i)
{
qDebug() << "Table names " << list.at(i) << endl;
}
//This correctly returns the column indexes
int recNum = rec.indexOf("RecNum");
int uniqueId = rec.indexOf("UniqueID");
int sic = rec.indexOf("SIC");
int msgType = rec.indexOf("MsgType");
//This is giving me problems
if(!query.exec("SELECT * FROM EntityTypeTbl"))
qDebug() << query.lastError().text();
// Enter Qt main thread's event loop.
return app.exec();
} // main