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

SQL Null Query

Status
Not open for further replies.

emueller

Technical User
Jan 22, 2009
17
US
I am working on a query that calculates a the average of the difference between two dates.

The issue I am having is that there are some pieces of occasional data that can severly skew this average, so I don't want to include them. So I would like to have the query ignore data where the field that causes the skew is null.

As a truncated example, I'm using:

IIf([Transferred]=True And [Legal Hold Off]=Null And...

but as soon as I add the Null parameter, my query returns nothing. The proper syntax must be simple, but I'm stumped!!
 
Replace '=Null' with ' Is Null '

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top