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

Special Feild RecordNumber

Status
Not open for further replies.

mgreer

Programmer
Jan 9, 2001
45
US
In the footer of my reports I have a the Special
Field RecordNumber. My problem is when no records are returned RecordNumber still displays 1. I would like for it to display 0 instead of 1.

 
This surprised me, but here is a simple workaround. Create the following formula using a field that is always filled in, like any system field:

if IsNull({Your.field}) then 0 else RecordNumber

This will print 0 when no records are returned, but will print the recordnumber otherwise. Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
Ken,

That's how I have it working now and it works fine, I guess I was just hoping there was a better workaround or some other function that I didn't know about.

Thanks for your help!

 
Nope, that is how it works.

I have seen this 'dummy' record come up with formulas on the detail band. Many formulas will print one instance on the detail band even when there are no records. Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top