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

Handling 0 record count condition

Status
Not open for further replies.

Russie

Programmer
Dec 24, 2000
104
US
Hi.

This is a small but annoying problem.

I have a tabular form that extracts data from SQL Server using SQLOLEDB.

My only issue is when the form displays 0 records (i.e. calls a day with no activity) I get '#Error' in my count field.

I'm using count([Amount]) to return the row count. When 0 rows are returned I want the box to display 0 and not #Error.

Thanks for anything.

A star for the answer.

Russie
 
use count(nz([Amount]))
null to 0 function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top