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!

Count field

Status
Not open for further replies.

eshaan

Technical User
Feb 20, 2003
57
US
I have feild that counts. When data is not available it is printing Error. How Can i print 0 instead of Error.

Please help me.

Thanks.
 
eshaan
You say "when data is not available." Is this data from a subreport? If so, you have to check for data using the HasData property.

Tom
 
eshaan,

Instead of using count you could set the control source of the counting field to

=Sum(IIf(IsNull([YourField]),0,1))

Where [YourField] is the field you want to count.

Mordja
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top