Connecting Tech Pros Worldwide Forums | Help | Site Map

Summing Values in a report

Member
 
Join Date: Feb 2008
Posts: 58
#1: Jul 10 '09
I have a report which I am pulling from a crosstab query and want to calculate the values at the end of each row. This report has 5 columns named col1, col2... col5. Col6 is where the total goes. Can I solicit a little help from the No1 programming forum on the net?

ADezii's Avatar
Expert
 
Join Date: Apr 2006
Location: Philadelphia
Posts: 5,224
#2: Jul 11 '09

re: Summing Values in a report


Quote:

Originally Posted by KingKen View Post

I have a report which I am pulling from a crosstab query and want to calculate the values at the end of each row. This report has 5 columns named col1, col2... col5. Col6 is where the total goes. Can I solicit a little help from the No1 programming forum on the net?

In my humble opinion, there is only 1 way to accomplish this task without involving another layer of much greater complexity and that is to use the Crosstab Query Wizard to reconstruct the Crosstab Query.
  1. In the 1st Dialog, select the Table or Query for the Crosstab.
  2. In the 2nd Dialog, select your Row Heading(s).
  3. In the 3rd Dialog, select your Column Heading(s).
  4. Ini the 4th Dialog, you will choose the type of Calculation to be performed at each Row/Column Intersection. In this Dialog, you will also see an Option to Include Row Sums within the Crosstab Query - select this.
  5. Save the Query.
  6. Create a Report based on this newly created Crosstab Query, and include the Row Summation Column within it.
  7. Good Luck, and let us know how you make out.
Member
 
Join Date: Feb 2008
Posts: 58
#3: Jul 13 '09

re: Summing Values in a report


This is just what I needed. No extra coding needed, thank God. I have gained so much from this forum that it feels like college again... How fun-filled were those days. Thanks guys for having the best forum online.
Reply


Similar Microsoft Access / VBA bytes