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

Record Count Question

Status
Not open for further replies.

jhein

Programmer
Feb 17, 2003
46
0
0
CA
I have a report where I need to display a zero if the datasource does not return any records. Is there someway to perform a record count...and if it is equal to zero then I can display a zero on the report?
 
>Is there someway to perform a record count...and if it is equal to zero then I can display a zero on the report?

Insert a Text Object in it's own Data Section, put a "0" in that Object ("In my case I've been putting "No Records Found" in there, in big red letters.)

Open the Section Expert and set the Suppress = "
Code:
Count ({TableName.AnyValidFieldName}) >= 0
"
Good Luck! [thumbsup2]
WindUp
 
Thanks everyone. Right after I posted this thread, the answer came to me. I can't believe I didn't think of it sooner!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top