Event Procedure

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
 
G

Guest

"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.
 

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