Group records on an expression on a data access page

Group records on an expression on a data access page

  1. Open the data access page in Design view.

  2. Create a grouped data access page.

  3. If the expression will reference field names, either add the fields to the page as bound HTML controls, or add the fields as bound text boxes.

    Tip   The page will load faster in Page view and in Microsoft Internet Explorer if you use bound HTML controls.

  4. Add a bound HTML control for the expression by clicking Bound HTML Bound HTML control on the toolbox and then clicking in the section where you want the control.

  5. Make sure the control is selected, and then click Properties on the toolbar to display the property sheet.

  6. Type an alias for the expression followed by a colon and the expression you want in the ControlSource property box. In this example, FullName is the alias for the expression:

    FullName: FirstName & " " & LastName

  7. With the bound HTML control still selected, click Promote on the toolbar.

    Microsoft Access adds a group header that contains an expand control, and a record navigation section that contains a record navigation control. Access moves the control you grouped on to the group header.

Notes