I have suppression formula that works but I am wonder why it isn't represented in the SQL query: Crystal Reports, Database, Show SQL Query.
There is a text box that gets suppressed if the country code is not either US or USA. {SO_InvoiceWrk.BillToCountryCode} <> "USA"
AND {SO_InvoiceWrk.BillToCountryCode} <> "US".
This question arose when I noticed the following formula didn't work so I wanted to see how Crustal interpreted it when it was converted to SQL. {SO_InvoiceWrk.BillToCountryCode} <> "USA"
OR {SO_InvoiceWrk.BillToCountryCode} <> "US".
I believe both the AND and the OR operators should work. Using OR, if either of the conditions is met, the value of the query is true. Using AND, both of the conditions must be met, and the value of the query is true. In this example, the query should return TRUE for AND and OR. Why would there be different results?
------------------------------
Doug Higgs
Midwest Commerce Solutions, Inc
(312) 315-0960
Assistant to the Traveling Secretary
------------------------------