| TABLE 6-1: CREATING HANDLERS FOR FORM-LEVEL EVENTS | |
| Event | To Create the Handler |
| OnLoad | Choose Tools→Script→On Load Event. |
| OnSwitchViews | Choose Tools→Script→On Switch Views Event. |
| OnVersionUpgrade | Choose Tools→Form Options to display the Form Options dialog box. On the Advanced tab select Use Script Event in the On Version Upgrade list, and then click the Edit button. |
| OnSubmitRequest | Choose Tools→Submitting forms. In the dialog box, select Submit Using a Custom Script in the Submit list, and then click OK. |