D
Dave Stone
I have a form with a 'Close' button and the following OnClick event
proc.:
Private Sub Close_Form_Click()
On Error GoTo Err_Close_Form_Click
DoCmd.Close
Exit_Close_Form_Click:
Exit Sub
Err_Close_Form_Click:
MsgBox Err.Description
Resume Exit_Close_Form_Click
End Sub
Pretty simple, huh?
Click the button in Access XP and the form closes; do the same in
Access 2003 and I get 'Invalid procedure call or argument' (error 5)
and an empty Visual Basic window on dismissing the MsgBox. The
database file is 2002 format, by the way, and there are no missing
references AFAIK.
Any clues, anyone?
Dave
proc.:
Private Sub Close_Form_Click()
On Error GoTo Err_Close_Form_Click
DoCmd.Close
Exit_Close_Form_Click:
Exit Sub
Err_Close_Form_Click:
MsgBox Err.Description
Resume Exit_Close_Form_Click
End Sub
Pretty simple, huh?
Click the button in Access XP and the form closes; do the same in
Access 2003 and I get 'Invalid procedure call or argument' (error 5)
and an empty Visual Basic window on dismissing the MsgBox. The
database file is 2002 format, by the way, and there are no missing
references AFAIK.
Any clues, anyone?
Dave