Huh?

P

PeterM

I'm getting the message below. I can't figure out what it's trying to tell
me. Can someone please enlighten me?

THE EXPRESSION ON OPEN YOU ENTERED AS THE EVENT PROPERTY SETTING PRODUCED
THE FOLLOWING ERROR: PROCEDURE DECLARATION DOES NOT MATCH DESCRIPTION OF
EVENT OR PROCEDURE HAVING THE SAME NAME.

In debug mode I can't get it to get to the On Open event. The message above
happens first.

Thanks in advance. (I know it's something stupid that I did!)
 
D

Dirk Goldgar

PeterM said:
I'm getting the message below. I can't figure out what it's trying to
tell
me. Can someone please enlighten me?

THE EXPRESSION ON OPEN YOU ENTERED AS THE EVENT PROPERTY SETTING PRODUCED
THE FOLLOWING ERROR: PROCEDURE DECLARATION DOES NOT MATCH DESCRIPTION OF
EVENT OR PROCEDURE HAVING THE SAME NAME.

In debug mode I can't get it to get to the On Open event. The message
above
happens first.

Thanks in advance. (I know it's something stupid that I did!)


Did you by any chance modify or hand-code the event procedure's Sub
declaration? The Sub statement should look like this:

Private Sub Form_Open(Cancel As Integer)

If it doesn't, you'll get that message.

By the way, you should try to make your post's subject a bit more
informative. You'll get better responses that way.
 
P

PeterM

Understood about the title.

I checked the Form_Open event and it looks fine... Any other ideas dirk?
 
A

Allen Browne

Peter, it doesn't have to be the Form_Open event that's the problem one.

Look at all the code in the module, e.g. do you have:
- two Form_Open's?
- a Form_Load or Current with a Cancel argument it shouldn't have?
- controls' events that are not right?

In the code window, try Compile on the Debug menu.
 
D

Dirk Goldgar

Allen Browne said:
Peter, it doesn't have to be the Form_Open event that's the problem one.

Good point, Allen.
Look at all the code in the module, e.g. do you have:
- two Form_Open's?
- a Form_Load or Current with a Cancel argument it shouldn't have?
- controls' events that are not right?

In the code window, try Compile on the Debug menu.

Peter, follow this advice.
 
D

De Jager

PeterM said:
I'm getting the message below. I can't figure out what it's trying to
tell
me. Can someone please enlighten me?

THE EXPRESSION ON OPEN YOU ENTERED AS THE EVENT PROPERTY SETTING PRODUCED
THE FOLLOWING ERROR: PROCEDURE DECLARATION DOES NOT MATCH DESCRIPTION OF
EVENT OR PROCEDURE HAVING THE SAME NAME.

In debug mode I can't get it to get to the On Open event. The message
above
happens first.

Thanks in advance. (I know it's something stupid that I did!)
 

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


Top