|
To automate the most regular actions a user would
perform on a form, Microsoft Access provides the Command Wizard. It is a
suite of dialog boxes that allow you to create routine action without
writing code. Some of the actions have been highly configured while some
other would need a little adjustment from you.
To use the Command Button Wizard, on the Toolbox, first
make sure the Control Wizard button is clicked. Then, click the Command
Button control and click a section of the form. The wizard would start and
would guide you step-by-step with the necessary task.
|
|
Practical Learning: Printing an Invoice |
|
- To follow with this exercise, open the College Park Auto Shop
database
- From the Forms section of the Database window, double-click
the WorkOrders form to open it
- After viewing it, switch it to Design View
- On the Toolbox, make sure the Control button is down
and click the Command Button 
- On the form click in the right side of the Form Footer section
- When the Command Button Wizard starts, in the first page, in the
Categories list, click Form Operations
- In the Actions section, click Close Form:
- Click Next
- In the second page of the wizard, change the content of the top text
box to Close
- Click Next
- Change the name of the button to cmdClose
- Click
Finish
- To save the form, press Ctrl + S
- To test the form while closing it, switch it to Form View and click the
newly created Close button
|
|
|