tfdlogo_smallweb.jpg
Create Command Buttons to Open an Access Form PDF Print E-mail

Access can be intimidating for the people who are not developers and are just using the database for data input and retrieval. One way to make your database more “user-friendly” is to use command buttons to automate the process of opening a form. Buttons like these in the Northwind Database can make all the difference in the usability of your database.

Northwind Database Main Switchboard

Using the Access Wizard you can create these buttons without writing a single line of VBA code.

Create a Command Button to Open An Access Form

  1. Open in the design view the form in which you would like to place the button.
  2. You will need the Toolbox Toolbar so make sure it is open.

    Access Toolbox Toolbar

    Access Tip From DorisTIP: To open the toolbar, click the Toolbox button on the main Form Design Toolbar.
    Access Toolbox Button
  3. The Toolbox Toolbar will usually open docked to the bottom of the Access window. Make sure the Wizards Button is activated. (It will look “pushed in”.)

    Access Wizards Button
  4. Click the Command Button Tool.
    Command Button
  5. Point to the place on the form where you want the new command button to go. Your mouse pointer will show a command button icon.
    Access Command Button Placement
  6. Either click or click and drag to the desired button shape.
    Access Command Button Sizing
  7. When the mouse is released the Command Button Wizard will start and the first step dialog box will open.
  8. In the first pane under Categories, click Form Operations.
  9. In the second pane under Actions, click Open Form.
    Access Command Button Wizard- Step 1
  10. Click Next.
  11. In the second step dialog box, choose which form you want to open and click Next.
    Access Command Button Wizard- Step 2
  12. In the third box, choose if you want to filter the records or show all and click Next.
    Access Command Button Wizard- Step 3
  13. The fourth step is to choose how you want the button to look. Pictures are pretty but not usually very informative. Text will tell the end-users what will happen when the button is clicked. Click Next after setting the button’s appearance.
    Access Command Button Wizard- Step 4
  14. The final step is to name the button. The conventional naming dictates that the tag “cmd” be used for command buttons. (See Naming Conventions in Access.)
    Access Command Button Wizard- Step 5
  15. Click Finish.
  16. The button will be placed on your form.
    Access Command Button in Design View
  17. When shown in the form view the button has a professional look.
    Access Command Button in Form View

 

 
< Prev   Next >