Add a filter

Microsoft Office InfoPath 2003

Show All Show All

Add a filter

When designing a form, you can allow users to filter data in a repeating section or repeating table, based on values that the user enters or selects elsewhere on the form. For example, if you use a repeating table to collect information about current projects, you can design a list box that allows users to filter projects by status.

Note   To complete this procedure, your form must include both a control that filters data (typically a list box control) and a control that displays the filtered data (a repeating section or repeating table).

  1. Right-click the Repeating Table or Repeating Section label below the table or section on the form, and then click Control Properties on the shortcut menu.
  2. On the Display tab in the Control Properties dialog box, click Filter Data.
  3. In the Filter Data dialog box, click Add.

    Note  If you want to add a condition to an existing filter, click the filter that you want, and then click Modify.

  4. In the Specify Filter Conditions dialog box, enter the filter condition.

    ShowExample

    Note  Microsoft Office InfoPath 2003 verifies a condition by checking the value of the field that is bound to the control inside the repeating table or repeating section, not the control itself.

  5. To add additional filter conditions, click And, and then in the rightmost box, do one of the following:
    • To apply the filter only when both conditions are true, click and.
    • To apply the filter when one or both of the conditions are true, click or.

Notes

  • When users move their mouse pointer over rows or sections that have been filtered, a filter icon Icon image appears on the shortcut menu button for each row or section. This provides users with a hint that their data is filtered and also allows them to reapply the filter, if necessary. If you don't want users to see the filter-specific shortcut menu button, clear the Show filter icon to indicate filtered items check box in the properties dialog box for the repeating table or repeating section.
  • The information in this topic may not apply if you are working with a form designed using Microsoft Office InfoPath 2003 without the service pack installed. Learn more