ReplaceSelectionFormula overrides the selection formula from the current report with the string that is passed.
[form.]Report.ReplaceSelectionFormula [(SelectionFormulaString$)]
CrystalReport1.ReplaceSelectionFormula ("{Company.State}='CA'")
«Uses "{Company.State}='CA'" as the selection formula for the report.»
This method DOES NOT use the string in SelectionFormula, and DOES conflict with setting the property. You cannot set the SelectionFormula, property and call ReplaceSelectionFormula in the same code sequence. A Visual Basic error condition will be raised in such a case.
| Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |