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

How to count null values in Query 1

Status
Not open for further replies.

Bass71

MIS
Jun 21, 2001
79
Hi

How can I show a Count output of null values in a select query? It simply outputs no records when attempting to count with Is Null in Criteria box.

Thanks......RO
 
SELECT Sum(Abs(IsNull([YourField]))) as NullRecords
FROM tblYourTable;

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top