SelectionFormula

SelectionFormula specifies the records to be used when printing the report.

Syntax

[form.]Report.SelectionFormula[= SelectionFormula$]

For example:

CrystalReport1.SelectionFormula = "{file.QTY} > 5"

«Include only those records that have a quantity greater than 5 in the {file.Qty} field.»

Remarks

{file.STATE} = "CA"

change all of the internal double quotes to single quotes and then surround the entire selection formula in double quotes as follows:

"{file.STATE} = 'CA'"

Data Type

String

Availability

Design Time; Runtime

Related Report Engine Functions

PESetSelectionFormula



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com