Error messages regarding event procedures

C

CDM

I opened Access this morning and every event procedure that fires gives me
this error message: "The expression ...(any event procedure)...you entered as
the event property setting produced the followng error: Procedure declaration
does not match description of event or procedure having the same name."
Everything ran fine yesterday. I've used the database repair utility,
closed Access and restarted, and restarted windows. Can anyone help me figure
this out?
Thanks, CDM
 
A

Allen Browne

Could be several possible causes.

1. Open a code window, and choose Compile on the Debug menu. Any errors
highlighted?

2. You may have a procedure that is not correctly declared.
For example, you could have:
Private Sub Form_BeforeUpdate()
where it should be:
Private Sub Form_BeforeUpdate(Cancel As Integer)

3. Still in the code window, choose References on the Tools menu.
Any marked "MISSING"?
Are they correct for your version of Access:
http://allenbrowne.com/ser-38.html

4. This can be an issue if you run multiple versions of Access on Vista:
http://allenbrowne.com/bug-17.html

5. If none of that helps, a decompile might help. Here's a standard recovery
sequence:
http://allenbrowne.com/recover.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Huh? 6
Error problem 3
Switchboard won't work on Vista 5
On Click error 4
Form wont work 1
Access bug? 3
Warning/Error message help please? 1
Event Procedure 1

Top