I am using Quantum 2013 and Crystal Reports 2008. The database engine is Pervasive SQL.
I created a report to display the sales for customers for a specific date range.
I need my selection criteria to include all customers whose ID startswith "GC", but doesn't end with "EX" or "EXEMPT".
For example a customer id like GCHUNTER would be selected for the report but GCHOLLYEX would not be included in the report.
Currently my selection formula is:
{Customers.CustomerID} startswith "GC" or (not({Customers.CustomerID} in ["ex","exempt"]))
This formula returns the records for all customers whether they start with "GC" or not and it also includes those customers whose ID ends in "EX" or "EXEMPT".
How can I change the formula so it only pulls the customer ids that start with "GC" and doesn't pull any customers that (start with "GC") end with "EX" or "EXEMPT"?
Thank you for your help.
I created a report to display the sales for customers for a specific date range.
I need my selection criteria to include all customers whose ID startswith "GC", but doesn't end with "EX" or "EXEMPT".
For example a customer id like GCHUNTER would be selected for the report but GCHOLLYEX would not be included in the report.
Currently my selection formula is:
{Customers.CustomerID} startswith "GC" or (not({Customers.CustomerID} in ["ex","exempt"]))
This formula returns the records for all customers whether they start with "GC" or not and it also includes those customers whose ID ends in "EX" or "EXEMPT".
How can I change the formula so it only pulls the customer ids that start with "GC" and doesn't pull any customers that (start with "GC") end with "EX" or "EXEMPT"?
Thank you for your help.