Filtering Records to Include Multiple Field Values


This demonstration of Action Scripting adds a button to the Edit_Customer_Info form. This script will restrict all the records that the form displays to those where "CT", "MA", "ME", "NH", "RI", or "VT" is the value in the Bill_State_Region field.

  1. Sketch a button on the form.

  2. Enter "New England Only" into the Label field.

  3. Click Launch Script Editor.

  4. Click Add New Action.

  5. Select "Query" from the Category list and "Run Custom Query" from the Action list. Click OK.

  6. Click the Filter button at the right side of the Filter field.

  7. Select the "Bill_state_region" field, the "contains the words" operator, and enter "CT", "MA", "ME", "NH", "RI", and"VT" into the six conditions. Click OK.

  8. The result looks like this.

  9. Click Next > Finish > Finish to return to the Form Editor.

  10. Click Save.



Desktop applications only. Not available in Community Edition.

See Also