Error Trapping (1 Viewer)

J

JCDTV

Guest
I have a form, that on load, runs an update query which prompts for parameters. When I click "Cancel" on the parameters box, an error message pops up that tells me i have a "Run Time Error" then gives me the option to either "Debug" or "End". If I hit either one, the form still pops up.

Does anyone know the code that will prevent this Run Time error message from appearing, and that will automatically close the form when i hit the cancel button?
Hopefully someone can help me out. Thanks in advance for any input!!
 

Users who are viewing this thread

Top Bottom