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

query null ??

Status
Not open for further replies.

MikeDNova

Programmer
Jul 3, 2002
86
US
hey, i'm trying to run a query that uses null as part of the criteria. but i can't seem to get it to work.

i've tried "sentence"=null
isnull("sentence")

amongst others...

if i do a query with this as the criteria...
len(sentence)>1
then i get every row I DON'T want.

any suggestions???
thanks!
mike
 
Hi,

'Returns records that have a name field that is null.

SELECT tblCustomer.CustomerID, tblCustomer.Name
FROM tblCustomer
WHERE (((tblCustomer.Name) Is Null));

Have a good one!
BK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top