commands forms
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Commands on forms

Commands on forms

resolvedResolved · Medium Priority · Version 2003

replyReply Mon 22 Sep 2008, 10:05Delegate Rachel said...

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

For upcoming training course dates see: Pricing & availability

replyReply Wed 14 Jan 2009, 00:31Trainer Rajeev said...

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.

 

Please browse our web site to find out more about
access class microsoft training and other Microsoft training courses.

Access tip:

Convert A Form Into A Report

If there is a form that you want to to save as a report:

1. Open that form in Design View
2. Select File and Save As
3. In the Save As Dialog box Select Report

The system creates a report based on the form.

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard