Create a script for a command button on a data access page

  1. In Design view of a data access page, click Microsoft Script Editor on the Page Design toolbar.
  2. In the center pane of the Microsoft Script Editor, click the arrow next to the Object drop-down box on the left, and select the button that you want to create the procedure for.
  3. Click the arrow in the Event drop-down box on the right, and select onclick.