Thread View: borland.public.cppbuilder.database.ado
1 messages
1 total messages
Started by Zitt
Sun, 18 Mar 2001 20:09
Access violation in msjet40.dll when only run from IDE
Author: Zitt
Date: Sun, 18 Mar 2001 20:09
Date: Sun, 18 Mar 2001 20:09
22 lines
1386 bytes
1386 bytes
Hi all
My code like this
TADOQuery *qry = DataModule->ADOQuery1;
if(qry->Active)
qry->Active = false;
qry->SQL->Clear();
qry->SQL->Add("Select count(value) as maxvalue"); <-------Access
violation
qry->SQL->Add("from Table1");
qry->Active = true;
AnsiString sz = qry->FieldByName("maxvalue")->AsString;
I use jet 4.0 as driver.
It occur Access violation in msjet40.dll when only run from IDE
but when run standalone notthing happend !! when I change driver to be ODBC
everything correct.
Why ???
Zitt
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads