J
James
I have a form that opens the "Find" form from Access. However if there are
no records is give a run-time error sometime and other just an error mesage
with an ok button. I tried to use the If...Then...End but it still gave the
error. The code is below. Any help on this is greatly appreciated.
Private Sub Form_Open(Cancel As Integer)
On Error GoTo Err_Form_Open
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_Form_Open:
Exit Sub
Err_Form_Open:
MsgBox Err.Description
Resume Exit_Form_Open
End Sub
no records is give a run-time error sometime and other just an error mesage
with an ok button. I tried to use the If...Then...End but it still gave the
error. The code is below. Any help on this is greatly appreciated.
Private Sub Form_Open(Cancel As Integer)
On Error GoTo Err_Form_Open
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_Form_Open:
Exit Sub
Err_Form_Open:
MsgBox Err.Description
Resume Exit_Form_Open
End Sub