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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use "null" field?

Status
Not open for further replies.

bloomlight

IS-IT--Management
Jun 12, 2006
149
US
We are using Crystal Report v10. I have a question about using a "Date" filed which is null.

I know some SQL coding, but new in Crystal Report. When I type {Admission Date} is null, I got error message saying that "there is an error in this formula, do you want to save it anyway?". I tried both "Yes" and "No" to the question, neither of them will generate the correct report. How to use null filed in crystal report?

Is a way that I can type or edit SQL coding inside of Crystal Report? Thanks.
 
You'd say
Code:
IsNull({your.date})...
You must test for nulls first. A Crystal formula will stop when it finds a null, even if there is logic for it later on.

For your other question, do a SEARCH for SQL Command etc.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top