Command buttons are useful for a number of purposes. If you have used a wizard to create forms, you will notice that a Help button has been added to all forms. Other common uses are Yes and No buttons where the user must decide whether a certain task will be performed. Command buttons also launch forms, or even another program.

To create a command button

  1. Open the form in Form Designer.

  2. Select the Command Button tool and click in the design area to add the command button. The next step is to define the action associated with the button.

  3. Open the Properties window for the command button. The PushAction property specifies what happens when the user clicks the command button.

  4. Open the drop-down list in the PushAction property value field. You will see a list of possible actions.

  5. In the drop-down list, select RunObject.

  6. In the RunObject property, open the look-up table of system objects, and choose the object that you want to run when the command button is clicked.

See Also