Dear all,
I'm trying to add a logging function to my error handling but this seems not possible.
Error message: expected variable or procedure, not module... So is this really not possible (in Access 2003) and if so, is there an easy way around this? I don't want to write the same stuff for each procedure.
I'm trying to add a logging function to my error handling but this seems not possible.
Code:
On error goto errorcheck
...some code...
exitnice:
exit sub
errorcheck:
defineerror ' log error details to textfile
resume exitnice
Error message: expected variable or procedure, not module... So is this really not possible (in Access 2003) and if so, is there an easy way around this? I don't want to write the same stuff for each procedure.