Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, November 25, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Reporting & Notification Forums - Reporting
Forum to discuss reports for SalesLogix including Crystal, SQL Reports, etc. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Reporting | New ThreadView:  Search:  
 Author  Thread: querying nulls
Keri
Posts: 17
 
querying nullsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Aug 06 4:17 AM
fiogf49gjkf0d
I have tried all the usual SQL style statements for handling null fields in my database but Crystal reports doesn't seem to like them.

Is there a specific way of searching for null data within a crystal report.

Thanks.
[Reply][Quote]
Stuart
Posts: 178
 
Re: querying nullsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Aug 06 5:04 AM
fiogf49gjkf0d
What about this, in a formula, in Crystal Syntax:

If IsNull({field.name}) = True Then ...

Unless I've missed the point?

Also, there is a feature in Crystal that a test for Null must be the first one if you have multiple tests for values on the same field.
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: querying nullsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Aug 06 3:24 AM
fiogf49gjkf0d
Yes, in your Report Options - select Convert NULL Field Value to Default - eliminates the null issue.
[Reply][Quote]
John Gundrum
Posts: 632
Top 10 forum poster: 632 posts
 
Re: querying nullsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Aug 06 8:08 AM
fiogf49gjkf0d
I've always tried using SPs (with parameters usually) or views in Crystal Reports vs. building the table structures up in Crystal. I find you have greater flexibility with SPs and views. I get the SP or view to give me exactly the data I need for the report.

In using them you also have the ability to get rid of all NULLs before the data gets to the report. I'll use either a ISNULL() or CASE statement to rid the data of all NULL values. I've found this to be the most efficient way of gathering data from the database for a report. Other benefits outside of getting rid of nulls is all of the processing happens on the server and only the required data for the report is transferred to the client. So what I am left with is just using Crystal to format and present the report.

John G.
[Reply][Quote]
Keri
Posts: 17
 
Re: querying nullsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Aug 06 3:05 AM
fiogf49gjkf0d
Thanks for all your replies i shall give them a try
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/25/2024 7:49:32 AM