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!

Posative and negative figures

Status
Not open for further replies.

EscapeUK

Programmer
Jul 7, 2000
438
GB
I have a table that contains posative and negavtive figures. I would like to place all the postive results on one page and all the negative results on another page and then a total of both in the footer.

Please keep the instructions very simple
 
I will assume that these 'figures' are stored in a numeric field.

First, create a Crystal formula field with the following formula:

If {field} < 0
then &quot;B&quot;
else &quot;A&quot;

Second insert a new group using this field.
Third, add a page break on the group footer of this group using the &quot;New Page After&quot; check mark under &quot;Format - Section&quot;.

You can now select the field itself and use &quot;Insert - Grand Total&quot; or &quot;Insert - Subtotal&quot; to get the totals that you need.


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