Criteria is NULL

  • Thread starter Thread starter Praveen Manne
  • Start date Start date
P

Praveen Manne

Hi

I have a query, which will delete the whole record if the SSN = NULL

this is the query

Delete tblname.LN, tblname.FN from tblName where tblName.SSN = Null;

This statement is not working. Is there any wrong in the above statement ?

Please Help

Thanks
Praveen Manne
 
Hi

I have a query, which will delete the whole record if the SSN = NULL

this is the query

Delete tblname.LN, tblname.FN from tblName where tblName.SSN = Null;

This statement is not working. Is there any wrong in the above statement ?

Please Help

Thanks
Praveen Manne

Delete tblname.LN, tblname.FN from tblName where tblName.SSN Is Null;
 
You cannot use the equal operator with Null since the
expression:

Null (value) = Null

will return Null, NOT True.

Use ...WHERE tblName.SSN IS Null

HTH
Van T. Dinh
MVP (Access)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top