Command Button "search" not working

G

Guest

In accesss 2000 I have added a command button with binoculars to search for a
record but when I click on it, nothing happens. Any ideas?
 
J

Jeff Boyce

Are you saying you placed a picture of binoculars on your form and want it
to do something? Access is not very smart ... you will have to tell it what
to do.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
P

Pat Hartman \(MVP\)

If you used the wizard to build the button, it should have created an event
procedure that opens the find dialog. The necessary code is:

DoCmd.RunCommand acCmdFind

You can create your own event by selecting the click event and pressing the
build button. Choose Code if you are given an option. The sub header and
footer are placed in the code module and the insertion point is fixed for
you to enter code. Just enter the line above, save and you'll be all set.
 

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