Error - Procedure declaration does not match description of event or procedure

ANP

Registered User.
Local time
Yesterday, 22:52
Joined
Dec 1, 2012
Messages
23
I have got a Access 2007 format data base which I have been looking after for over a year now.

I have just made a change to one of the forms by adding a button (by copying the only other button on the form) to cancel any changes and close the form. However, as soon as I added it I started getting the error message in the title. Please attachment LA Err1 for the full message. I also changed the caption on the other button on the form from "Close Form" to "Save && Close Form" this button is now giving the same error.

I have Compacted and repaired the DB on several occasions to no avail. I have deleted the procedures from the module and recreated them using the properties window - still get the error.
I have deleted the buttons from the form and recreated the both via the object wizard and without it. Nothing I have tried has made any effect.

I am getting frustrated and any help would be appreciated.

Regards

ANP
 

Attachments

  • LA Err1.gif
    LA Err1.gif
    77.7 KB · Views: 262
  • LA Err2.gif
    LA Err2.gif
    94.1 KB · Views: 222
  • LA Err3.gif
    LA Err3.gif
    63.7 KB · Views: 255
Did you compile your code? How about a code walk through?
 
Hi pr2-eugin,

The DB is not compiled.

Not sure what you mean by a code walk through - willing to provide anything as long as I know how to do it.

Regards

ANP
 
Compile - Go to the VBA Editor window. Under Debug there should be an Option Compile. Do that, it will normally pop up all errors. Correct them.

Code walk through/Step through:

picture.php
 
Hi Paul,

Thanks for that when I did complile it came up with an error in one of the AfterUpdate modules on that form and once I resolved that it seems to resolve the issue.

regards

ANP
 

Users who are viewing this thread

Back
Top Bottom