procedure declaration does not match

  • Thread starter tpoettker via AccessMonster.com
  • Start date
T

tpoettker via AccessMonster.com

I started receiving this error as soon as I linked my subform and form (link
child and link master). When I remove this link, the error goes away. What
is going on?
 
J

John W. Vinson

I started receiving this error as soon as I linked my subform and form (link
child and link master). When I remove this link, the error goes away. What
is going on?

Presumably there's an error on the form, where a procedure declaration does
not match. We can't see the form though!

Is there any VBA code on the form or the subform? One case where I've seen
this error message is if you have a Sub which should have a parameter, and
doesn't; for example, the BeforeUpdate event of a form or a control should
have a (Cancel as Integer) parameter. If your code contains Private Sub
Form_BeforeUpdate() without the Cancel, you'll get this error. The reverse can
also happen - a Sub that should not have a parameter does.
 

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

Top