For a printable version of the Reporting topics, click here: http://ws4.insightdirect.com/Download/Website/docs/Crystal_Reports.pdf
Previous Topic: Report Syntax
To create a formula in Crystal Reports:
From the Design View page, right-click Formula Fields and select New from the pop-up menu. The Formula Name dialog box appears.
Type a name for the formula in the Name field.
Click Use Editor. The Formula Workshop appears with the Formula Editor active.
Verify that Basic Syntax is selected from the drop-down list.
Enter the formula by typing in the components or selecting them from the component trees.
|
|
Tip: |
Click . If any syntax errors are found in your formula, a Crystal Reports ActiveX Designer dialog box appears, informing you of the problem.
Fix any identified errors.
When complete, click Close. A dialog box appears, asking you if you want to save your changes.
Click Yes. Your new formula will appear in the Formula Fields section of the Design View page.
To add the formula to your report, select and drag it to the location where you want it to appear on your report.
Click Save and Close.
Next Topic: Casting Numbers as Currency
Back to Reports Table of Contents