Customize a record navigation toolbar

Microsoft Office Access 2003

Show All Show All

Customize a record navigation toolbar

  1. Open the data access page in Design view.
  2. Scroll to the record navigation section whose toolbar you want to customize.
  3. Do one or more of the following:

    ShowShow or hide a navigation button

    1. Right-click the navigation toolbar, and then click Navigation Buttons on the shortcut menu.
    2. Do one or both of the following:
      • Select the items that you want to include in the toolbar.
      • Clear the items that you want to hide from the toolbar. Alternatively, you can click the button on the toolbar, and then press DELETE.

      Note  If you don't see a check box to the left of the item, it means the item is not available to the page.

    ShowChange the picture that is displayed on a navigation button

    To change the picture on a navigation button, you need two picture files to represent the active status and inactive status of the button.

    1. Set the name of the file that contains the inactive image to the name of the file that contains the active image followed by the string "inactive".

      For example, if the active picture file is named Next.gif, name the inactive picture file Nextinactive.gif.

    2. Double-click the button whose picture you want to change.
    3. On the Other tab in the property sheet, in the Src property box, type the path and name of the active picture file.

      At run time, Microsoft Access will automatically show the contents of the inactive picture file when the button becomes inactive.

    ShowMake a control (such as a text box or bound span control) work like a navigation button

    1. If the control that you want to use as a navigation button is not already on the page, add a control to the page using the toolbox. You can add the control to the header, footer, or caption section of a group level.
    2. Double-click the control to display its property sheet.
    3. On the Other tab, in the ClassName property box, append the existing property value with a space and one of the following class names:
      For this button Set the ClassName property to
      First MsoNavFirst
      Previous MsoNavPrevious
      Recordset Label MsoNavRecordsetLabel
      Next MsoNavNext
      Last MsoNavLast
      New MsoNavAddNew
      Delete MsoNavDelete
      Save MsoNavSave
      Undo MsoNavUndo
      Sort Ascending MsoNavSortAsc
      Sort Descending MsoNavSortDesc
      Filter By Selection MsoNavFilter
      Filter Toggle MsoNavToggleFilter
      Help MsoNavHelp

Notes

  • When you add custom navigation buttons or change the picture on the navigation buttons, you might want to provide custom help or instructions on your page to assist users.
  • Each navigation button has its own property sheet. Double-click the button to display it.
  • If you want to change the behavior of the toolbar on the onmouseover and onmousedown events, open the Microsoft Script Editor and edit the styles of the MsoNavButtonMouseDown and MsoNavButtonMouseOver classes. You can also edit the styles for MsoNavContainer and MsoNavButton classes to control the appearance of the toolbar and navigation buttons.