Looking for Explanation of Error Message

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can anyone tell me what can cause the following error message?

The Expression After Update you entered as the event property setting
produced the following error: Procedure declaration does not match the
description of event or procedure having the same name.
 
The message means that you have a Sub that matches the name of one of the
built-in procedures, but the arguments don't match.

This example will do it, because the BeforeUpdate event procecure should
have the argument "Cancel As Integer":

Private Sub Form_BeforeUpdate()
MsgBox "This is bad!"
End Sub
 
Back
Top