Formula1

  1. To get started, create a report using the Customer table in xtreme.mdb and place the following fields from left to right in the Details section:
{customer.CUSTOMER ID}
{customer.CUSTOMER NAME}

To test each portion of the formula, you will place a new formula field next to these two fields in the report.

  1. Create a new formula called Formula1.
  2. Type the following in the Formula text box of the Formula Editor:
If {customer.CUSTOMER NAME} [1 to 2 = "Bi" Then
    "TRUE"
Else
    "FALSE"
  1. Click Check to test for errors. You will receive the following error message:

The ] is missing.

  1. Correct the formula by inserting the missing " ] " after the 2.
  2. Click Check again. You will receive the following message:

No errors found.

  1. Click Save then Close to return to the Insert Fields dialog box.
  2. Insert the corrected formula field to the right of the two data fields in the Details section of your report.
  3. Click Print Preview on the Standard toolbar to check the values in the report and compare the fields to see if the field values returned by @Formula1 are correct.

You will find "TRUE" listed next to the customer names that begin with "Bi" and "FALSE" next to all the others. Now you will check the other portions of the formula. Create Formula2, Formula3, and Formula4, by following Steps 1 - 9, using the formulas specified below for each.

Insert each formula field on the same line of the Details section for easy comparison. Check each one for errors, fix as needed, and make sure the values returned are correct before moving on to the next formula.



Seagate Software, Inc.
http://www.seagatesoftware.com
Please send comments to:
techpubs@seagatesoftware.com