Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Null Field Excluded 1

Status
Not open for further replies.

jpstrzoch

Technical User
Mar 24, 2004
59
US
I am using Crystal XI with an SQL 2005 DB. I need to exclude within my selection criteria a string field called CUSTOM_DATA7 when it contains a "K".

Simple enough......{CUSTOM_DATA7} <> "K".

But I notice that when records have a "null" value, they do not appear on the report. I need to include the "null" records but exclude the fields populated with a "k".

Additionally, this field could have other values such as "w".

How can I account for this in my Selection Expert selection statement?

Any help would be much appreciated.
 
You should try turning "convert null field values to default" on under file, options.

If that doesn't work, Gt to report, selection formulas, record, and manually type in the formula:

Isnull({custom_data}) or {custom_data}<>"K"

Note that this is NOT using the select expert, which is way too limiting. I have not used it in a single time in 11+ years.


Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"What version of URGENT!!! are you using?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top