Button_OnClick Event

This event occurs when a when user clicks a button field on the form.

Button_OnClick ( Form , ButtonName )
Argument Description
Form The form object.
ButtonName The name of the button field that was clicked.

Remarks

You can use this event to perform tasks such validating user input for a form field or populating other form field values on the form.

Example

Sub Button_OnClick(Form, ButtonName)
  ’Write custom code to lookup the user’s home directory.
  Form.Fields.Field(“Path”).Value = LookupHomeDirectory(Form.UserName)
End Sub