Symptom
Crystal reports do not show correct data when record selection formula is applied.
Environment
Crystal Reports 2008V1
Reproducing the Issue
- Create a report and add a record selection formula as follows:
{table.field1} startswith "ABC" or {table.field1} startswith "XYZ" - Save the formula and refresh the report. Expected data is not shown.
Cause
Even though the formula is syntactically or logically correct it is not understood by the Select Expert.
Only thing it understands from above formula is that record selection is based on the field {table.field1}. Select Expert creates a different formula to achieve the same result.
Resolution
- Edit the report in Crystal Reports designer.
- Click Report>>Selection Formulas>> Record. Formula Editor opens.
- Modify the record selection formula as follows
{table.field1} startswith ["ABC","XYZ"] - Save and Close the formula editor.
- Refresh the report.
Keywords
KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem
Product
Crystal Reports 2008 V0 ; Crystal Reports 2008 V1