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

Newbe Formula Qustion 1

Status
Not open for further replies.

sclark415

Programmer
Mar 17, 2003
42
US
Sorry the question is so basic. I am using v9.2 - I have to sum up recordtype A and recordtype B separtely (only have 2 types). Then sum both recordtype A and recordtype B together for the report totals. How do I do this? My report is in a group footer since all I need is the totals.
Thanks!
 
If they are from the same field {table.type} then create two formulas:

//{@typeA}:
if {table.type} = "A" then {table.amt}

//{@typeB}:
if {table.type} = "B" then {table.amt}

Then right click on each formula and insert a summary (sum).

If you want to count these records, substitute a 1 for {table.amt} and then again, insert a sum.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top