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.
Sketch a button on the form.
Enter "New England Only" into the Label field.
Click Launch Script Editor.
Click Add New Action.
Select "Query" from the Category list and "Run Custom Query" from the Action list. Click OK.
Click the Filter button at the right side of the Filter field.
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.
The result looks like this.
Click Next > Finish > Finish to return to the Form Editor.