Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

commands forms

ResolvedVersion 2003

Rachel has attended:
Access Introduction course
Access Intermediate course
Access Advanced course

Commands on forms

Hi
I am trying to add a command onto a form in which I can search for a specific entry in another form. I've found the find entry command but I dont know what to do once I have put that onto the form. Unlike the new entry command, which asks you which form to open, the find entry doesnt do that and I dont know how to write a command for that.
Thank you

RE: Commands on forms

Dear Rachael

Thank you for attending Access Courses!! I hope you enjoyed the course and benefited from it.

I believe that you have covered Access Advanced with us and you must have covered Macros!!

In order to achieve the desired result you have to follow these steps:

Create a new Macro and set the first action to OpenForm and in the Action Argument choose the Form that you wish to search in.

The next action to use is GoTo Control and again in the action argument type in the name of the filed that you wish to search in. (Please make sure when you type in the name of the filed it is in Square brackets)

Last Action to set is RunCommand and in the Action Argument select the Find from the drop down list

Once the Macro has been created Save the Macro with an appropriate name.

Go to the Form where you need to create a command button.

Create the command button in the form. If the wizard appears cancel the Wizard.

Right-click on the command button and choose Properties.

Choose the Event Tab and on the On Click box choose the Macro that you created.

Go to the Form view and then press the Command button and you will observe that the chosen form will open and the Find dialog box will be displayed automatically for you to find your specific data.

I hope this has answered your query.

If this has answered your query then I would request you to please mark the question as resolved!! If not and you have a specific question related to this then please post it as a new question and we should be able to provide you the solution for it!!

Kindest Regards


Rajeev Rawat
MOS Master Instructor 2000 and 2003
MCAS Master Instructor 2007

Tue 20 Jan 2009: Automatically marked as resolved.

Access tip:

Splittng a database

Split your database into two (at least).

Keep all of your code, forms, reports, etc. in one 'code' database and all of your tables in another 'data' database which is then linked to the 'code' database.

This makes modifications, updates and back-ups that much easier and allows you to work on a new version of your 'code' database without affecting existing users. It also makes it easier should you wish to convert a single user databases into a multi-user networked version.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.