Event Procedure

  • Thread starter Thread starter wajidalibwp
  • Start date Start date
W

wajidalibwp

Hi,

I want to set [Event Procedure] as I have set so many Event but one of my
form, shows me following message.

Code is simple "DoCmd.OpenForm"My Form Name""

Where is the fault?

When I click, messages comes.

The expression On Click 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.
• The expression may not result in the name of a macro, the name of a user-
defined function, or [Event Procedure].
• There may have been an error evaluating the function, event, or macro.
Thanks


Wajidalibwp
 
"DoCmd.OpenForm"My Form Name""

You need a space btw DoCmd.OpenForm and the form name
DoCmd.OpenForm "My Form Name"

and it does not require "" around the entire line. Obviously you need to
replace 'My Form Name' with the proper name of your form.
 
Back
Top