Toolbox wizard to create Command Button

S

setabery

Access 2003
Windows XP Professional


I used the Control Wizard on the Toolbox to create a Command Button to
close the form.

When I try to use it it will not run and returns this error message -

The expression On Click you entered as the event property setting
produced the following error: Expected: list separator or ).

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

Any ideas why? I'm at a loss.
 
N

niuginikiwi

Check to see if you haven't changed the name of the command button
since creation by the wizzard. Make sure you haven't copied that
command button from another form and if you did, make sure the onclick
event has a procedure (that is the DoCmd.Close sub) assigned to it.
 

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