conditional printing in crystal reports

I have a crystal report for store sales with a formula in the page header to print either a store name or 'Grand Total'. If there are 2 (or more) grand total pages, I cannot get the right heading to print on both  grand total page. The current formula looks like this:

if PageNumber = TotalPageCount or OnLastRecord  then
    {?Grand Total}
else
    "Store Name"

which works unless the last store prints 2 pages

Any help is greatly appreciated (couldn't find crystal in the topics)
CASorterAsked:
Who is Participating?
 
CASorterConnect With a Mentor Author Commented:
figured out how to fudge it
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.