Database Reference
In-Depth Information
You're setting up a new test, this time checking to see if “City” is the script parameter.
If it is, then you want a Sort step following this parameter to sort by—you guessed
it—city.
NOTE
Sometimes it's quicker to copy an existing If test and then paste and edit it in the Else If
steps.
10. Add another copy of the Sort Records script step to the script. Turn on “Per-
form without dialog.” Set the sort order to City and then click OK .
Your second test, and what to do if that test is true, is now complete.
NOTE
Now you can select the Else If and its Sort and then use the Duplicate button to make
copies of both steps. Then, edit the Else If test and the Sort order.
11. Add one more copy of the Else If script step, this time with Get(Script Para-
meter) = “State” as the calculation .
Your finished script should look something like Figure 17-13 .
NOTE
When you're making a series of tests like the ones in this script, it's more efficient to put the condi-
tion that most often tests as true at the top. That way, the script doesn't have to test conditions that
usually fail.
Search WWH ::




Custom Search