Customize the expand control on a page

Microsoft Office Access 2003

Show All Show All

Customize the expand control on a page

  1. Open the data access page in Design view.
  2. Scroll to the header section that has the expand control Button image that you want to customize.
  3. Do one or more of the following:

    ShowChange the picture that is displayed on the expand control

    • Do one of the following:

      ShowSelect from a list of images included in Microsoft Access

      1. Double-click the expand control Button image.
      2. On the Other tab, in the Src property box, select the item you want.

      ShowUse custom images

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

      1. Set the name of the file that contains the expanded image to the name of the file that contains the collapsed image followed by the string "expanded".

        For example, if the collapsed picture file is named folder.gif, name the expanded picture file folderexpanded.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 collapsed picture file.

        At run time, Microsoft Access will automatically show the contents of the expanded picture file when the group is expanded.

    ShowMake a control work like an expand control

    1. If the control that you want to use as the expand control is not already on the page, add the control to the page using the toolbox.
    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 the string MsoExpandCollapse.

    For example, if the property is set to MsoBoundSpan, set it to MsoBoundSpan MsoExpandCollapse.

    Notes

    • The control will act as a toggle button but will not indicate the expanded or collapsed state.
    • When using custom expand controls, you might want to provide custom help or instructions on your page to assist users.
  4. Make sure the ExpandedByDefault property of the group level that has the customized expand control is set to False.