Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error message while running procedures

Status
Not open for further replies.

thepope77

Technical User
Jul 1, 2003
26
US
Hello everyone:

I am having major trouble with the code in one of my forms. I am getting an error ("Procedure declaration does not match description of event or procedure having the same name.") when I try to run any of my code. This just started happening seemingly out of the blue. Even if I just use the wizard to create a command button that adds a new record, I still get the same message. This is only happening on the one form.

If anyone can help it would be greatly appreciated.

Thanks so much.
 
thepope77

Did the wizard create two modules? For example, "RefreshOnClick()". I get something like this when I delete a command button or combo box from the form and then recreate it later using the same name. I learned that I have to delete the code and then delete the object.
 
No. It is giving that error message for some other objects that I know I haven't changed. Anything that has code is not working; just on this one form though. The other forms in the database are functioning just fine. I am very frustrated. Thanks for your help.
 
thepope77

Do you use...
Option Explicit

Also, check out a Micrsoft bug alerts and KBase for VB, ActiveX and ADO...





If any of these discribes your problem, then you may have to upgrade ADO or change a data type.

If not, I would try to isolate the problem by commenting out code or stepping through the code.

Richard
 
willir:

Yes. I have the option explicit required in the options menu.

I just decided to re-create the form. The new form is working as it should. I have no idea what happened to the other form. Should I get delete the old form or do you think whatever caused the problem is contained within that particular form?

I really appreciate your help with this.

Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top