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
-
Open the form in Form Designer.
-
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.
-
Open the Properties window for the command button. The PushAction property specifies what happens when the user clicks the command button.
-
Open the drop-down list in the PushAction property value field. You will see a list of possible actions.
-
In the drop-down list, select RunObject.
-
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.