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

Null Value Filter!!!!!!! 1

Status
Not open for further replies.

anandwaits

Programmer
Oct 18, 2005
6
0
0
US
hi guys,

I have a scenario where i have to handle the null values in the filter (say, in the WHERE condition i need (START_DATE is NULL) or (START_DATE >= ?Startdate))
How can i get this expression.

I have to create this in formula editor or SQL Expression editor.

Can anybody help in this issue.

Anand
 
Hi,
Have you tried
Code:
START_DATE = Date(0,0,0)

If START_DATE is actually a Date or DateTime field this should eliminate NULLS ( I'm not sure Crystal's
IsNull(START_DATE) works on Date fields)
- If it is a text field used as a date then test for
Trim(START_DATE) = ""



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
This should do the trick if they are truly null:

Isnull({StartDate}) or {StartDate}>={?StartDate}



Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top