command button error

F

Facilitator

WHen I create a command button on a form using the
wizard, I chose the close form command. When I go to use
it in form view I get the following error:

The expression On Click you entered as the event property
setting produced the following error:Ambiguous name
detected: Close_Form_Click.

*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 hte function,
event, or macro.


Can't seem to find out what it means. Please let me know
if you have any ideas.

Thanks
 
D

Dan Artuso

Hi,
If you go into the VB editor, you will probably see two procedures
called: Close_Form_Click
Delete one of them and try again. If it still doesn;t work,
delete the remaining one and the command button and start again with the
wizard.
 

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