Toolbox wizard to create Command Button

  • Thread starter Thread starter setabery
  • Start date Start date
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.
 
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.
 
Back
Top