How to add programming codes on Command Button
To add programming codes on Command Button
Step 1:
Add the CommandButton in the Form:
Step 2:
Set the CommandButton Properties:
Step 3:
Double click on CommandButton. Type in the programming codes. In this example, 'Hello' will be displayed on the form whenever the button is clicked:
Private Sub Command1_Click()
Print "Hello"
End Sub
Step 4:
Below is the result of clicking on the button:
No comments:
Post a Comment