G
Guest
Sorry to trouble you guys with possible an easy question.
The issue I have is that I'm trying to write an error handler into a table.
What I had so far was;
DoCmd.RunSQL "INSERT INTO tblEventlog (EventDate, ErrorSource, " & _
"ErrorHandler) VALUES (Now(), 'Exec Summary', " & err.Description & ");"
It keeps throwing an error due to the err.Description. I have tried putting
the Err.Desciption into single quotes before closing the main SQL statement
off to get it too.
I've tried using a variable to manage this rather than the err.Description
and also build the SQL statement into a string (called strHandler) and then
had -
DoCmd.RunSQL strHandler
....but this also throws the same error. Any chances you could help at all
please??
Thanks in advance.
DaveO.
The issue I have is that I'm trying to write an error handler into a table.
What I had so far was;
DoCmd.RunSQL "INSERT INTO tblEventlog (EventDate, ErrorSource, " & _
"ErrorHandler) VALUES (Now(), 'Exec Summary', " & err.Description & ");"
It keeps throwing an error due to the err.Description. I have tried putting
the Err.Desciption into single quotes before closing the main SQL statement
off to get it too.
I've tried using a variable to manage this rather than the err.Description
and also build the SQL statement into a string (called strHandler) and then
had -
DoCmd.RunSQL strHandler
....but this also throws the same error. Any chances you could help at all
please??
Thanks in advance.
DaveO.