Opening a Form with Command Button

T

TMelone

I have tried to add a command button to a simple form that
will open another form for data entry. Everytime I click
on it I get this message:
"The expression on load you entered as the event property
setting produced the following error: Ambigous name
detected:find_record_click.

When I hit OK the form correct form then opens. Any
suggestions?

TM
 
D

Dirk Goldgar

TMelone said:
I have tried to add a command button to a simple form that
will open another form for data entry. Everytime I click
on it I get this message:
"The expression on load you entered as the event property
setting produced the following error: Ambigous name
detected:find_record_click.

When I hit OK the form correct form then opens. Any
suggestions?

It's telling you you have multiple procedures named "find_record_click"
in your form's code module. Open the module in the VB Editor, set the
code window for Full Module View (using the buttons at the bottom left
corner of the module window), and look through the code for the
duplicate procedure. Assuming you find more than one (which I expect),
choose which one to keep and delete the other(s).
 

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