Huh?

  • Thread starter Thread starter PeterM
  • Start date Start date
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!)
 
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.
 
Understood about the title.

I checked the Form_Open event and it looks fine... Any other ideas dirk?
 
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.
 
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.
 
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!)
 
Back
Top