I have a form with four input boxes, all of which are required and two
buttons, "OK" and "Cancel", for storing information in a table and closing
the form respectively. I have managed to get my error trapping code to work
for the above 2 buttons, but when I try to close the form from the "X"
button at the right top hand corner of the form, it gives me some errors
which I would like to have control by doing some error trapping. Can anyone
help me with this?
P.S: I tried the 'On Unload' and 'On Close' events but it doesn't work. The
weird thing is that i put a code to get the error number (Err.Number) and
although when i close the form from the 'X' it gives me an error, my extra
code shows me that the error number is 0. I am using Access 2000. Could
anyone help me as it is the fourth day and I am stuck.
buttons, "OK" and "Cancel", for storing information in a table and closing
the form respectively. I have managed to get my error trapping code to work
for the above 2 buttons, but when I try to close the form from the "X"
button at the right top hand corner of the form, it gives me some errors
which I would like to have control by doing some error trapping. Can anyone
help me with this?
P.S: I tried the 'On Unload' and 'On Close' events but it doesn't work. The
weird thing is that i put a code to get the error number (Err.Number) and
although when i close the form from the 'X' it gives me an error, my extra
code shows me that the error number is 0. I am using Access 2000. Could
anyone help me as it is the fourth day and I am stuck.