andrewjb
asked on
Another simple ADO query question..
I use an ADO query ( insert into ...) to add a record to a table, and execute using qry->ExecSQL()
If there's an index violation (duplicate key / illegal empty field etc) it throws an exception. Can't I trap that somehow? The query component has OnPostError and OnEditError but they don't get called? Or do I have to try to insert the record a different way?
If there's an index violation (duplicate key / illegal empty field etc) it throws an exception. Can't I trap that somehow? The query component has OnPostError and OnEditError but they don't get called? Or do I have to try to insert the record a different way?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It really does not work:
ADOQuery1PostError();
I tryed to debug it, posted an illegal data for a field, but an exception raises and the debuger does not go into the OnPostError ?
I don't know why ....
ADOQuery1PostError();
I tryed to debug it, posted an illegal data for a field, but an exception raises and the debuger does not go into the OnPostError ?
I don't know why ....
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER