RichO
Registered Yoozer
- Local time
- Today, 15:33
- Joined
- Jan 14, 2004
- Messages
- 1,036
Greetings!
I have a piece of code that uses SQL for an insert query. Every once in a great while the record that it is supposed to insert does not get inserted and I'm guessing that there is some kind of key or null violation that it encounters.
No error is displayed when this happens and there is currently no error trapping code.
Will a simple On Error GoTo and a MsgBox Err.Description tell me when the SQL fails or is there some other kind of error handling that needs to be done to inform me of a SQL error?
Thanks!
I have a piece of code that uses SQL for an insert query. Every once in a great while the record that it is supposed to insert does not get inserted and I'm guessing that there is some kind of key or null violation that it encounters.
No error is displayed when this happens and there is currently no error trapping code.
Will a simple On Error GoTo and a MsgBox Err.Description tell me when the SQL fails or is there some other kind of error handling that needs to be done to inform me of a SQL error?
Thanks!