Thanks PHV! The addition of the replace(errDesc... made all the difference.
The only other code I had to add was to turn off warning messages at the beginning and then turn back on at the end.
Public Function errorCapture(frmName As String, errNum As String, errDesc As String)...
I am trying to use a SQL insert statement to automatically add a record to a table to capture errors.
The table setup:
errRecordID - primary key, no duplicates, autonumber
Date - Date/Time
FormName - text
errorNumber - text
errorDescription - memo
Notes - memo
The code in VBA is as follows...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.