Lynn_AccessUser
Registered User.
- Local time
- Today, 14:01
- Joined
- Feb 4, 2003
- Messages
- 125
I have a main form that on the click event on a button it opens up another form. However, there may not be any records in the second table related to the primary ID of the main form so it gives me the following error:
run- time error 2455
You entered an expression that has a invalid reference to the property Form/Report.
I wrote the following code to handle the error:
On Error GoTo Err_Form_Load
Proc_Exit:
Exit Sub
Err_Form_Load:
MsgBox "There Is Data"
GoTo Proc_Exit
The message box appears, but when you click OK and close the msgBox the second form opens. How can I prevent this from happening.
Thanks!!!!!!!1
run- time error 2455
You entered an expression that has a invalid reference to the property Form/Report.
I wrote the following code to handle the error:
On Error GoTo Err_Form_Load
Proc_Exit:
Exit Sub
Err_Form_Load:
MsgBox "There Is Data"
GoTo Proc_Exit
The message box appears, but when you click OK and close the msgBox the second form opens. How can I prevent this from happening.
Thanks!!!!!!!1