On Error GoTo ErrHandler
I have this under every command button on my form, but I think there is another way of doing this
please advise
Printable View
On Error GoTo ErrHandler
I have this under every command button on my form, but I think there is another way of doing this
please advise
nope. not in any version of vb before vb.net.
If nothing critical is happening in ur routines u can just use On Error Resume Next. Saves adding the handler to each sub.
Regards
Stuart
I never use On Error Resume Next until I have solved all problem. WHen I see than I am ready to make it EXE than I put it in all function and command to be sure to don't have any error if user try it on their PC.