473,385 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Summing in reports

rcollins
234 100+
Here we are back on the report that I was trying to sum for the three different criteria. Now what they would like to see is a total for each of the criteria at the end of the report. Here is what my report looks like:
Expand|Select|Wrap|Line Numbers
  1. Client Name                               Total time: 5
  2.       Line Staff                                    3
  3.       Senior Therapist                              1
  4.       Lead Therapist                                1
  5. Client Name                               Total time: 3
  6.       Line Staff                                    2
  7.       Senior Therapist                              1
  8.  
  9.  
At the end, we would like to see:
Expand|Select|Wrap|Line Numbers
  1.                                                  Total Time per Employee
  2.       Line Staff                                    5
  3.       Senior Therapist                              2
  4.       Lead Therapist                                1
  5.  
Any help would be great
Mar 8 '07 #1
7 1817
Rabbit
12,516 Expert Mod 8TB
Here we are back on the report that I was trying to sum for the three different criteria. Now what they would like to see is a total for each of the criteria at the end of the report. Here is what my report looks like:
Expand|Select|Wrap|Line Numbers
  1. Client Name                               Total time: 5
  2.       Line Staff                                    3
  3.       Senior Therapist                              1
  4.       Lead Therapist                                1
  5. Client Name                               Total time: 3
  6.       Line Staff                                    2
  7.       Senior Therapist                              1
  8.  
  9.  
At the end, we would like to see:
Expand|Select|Wrap|Line Numbers
  1.                                                  Total Time per Employee
  2.       Line Staff                                    5
  3.       Senior Therapist                              2
  4.       Lead Therapist                                1
  5.  
Any help would be great
Expand|Select|Wrap|Line Numbers
  1. =DCount("*", "[Table/Query Name]", "[Field Name] = 'Line Staff'")
Lather, Rinse, Repeat.
Mar 8 '07 #2
rcollins
234 100+
Expand|Select|Wrap|Line Numbers
  1. =DCount("*","[qryMain]","[Title] = '1 Line Staff/Peggy James'")
  2.  
Shouldn't this be DSum? Even then, doesn't work. Where does this go? I thought it would go in the report footer.
Mar 9 '07 #3
Rabbit
12,516 Expert Mod 8TB
DSum or DCount? It depends on how your table/query is set up. What are the fields and types of data your table/query holds?
Mar 9 '07 #4
rcollins
234 100+
What we are doing is keeping track of the time employees have contact with clients. Time is in units, where each unit is 15 minutes. The fileds that I am using for calculations are Title, the employee spending the time with the client which is text, and Time, which is spent with the clients, which is number. We also use the client id and name on the report. The report is in alpha by client, then divided into which employee (Title) spent time with the client. We run this report every month. The only detail we need from this report is the sum of the time that each employee spent with the client. Now, at the bottom of the report, we want it to sum by employee, so we can see who much time each employee spent with total clients for the month. I hope this is enough info
Mar 9 '07 #5
NeoPa
32,556 Expert Mod 16PB
In a report header you can use =Sum([ControlName]) to produce sums of the values within a particular group or even across the whole report.
We would need some more details of the fields you're working with to go into more detail.
Mar 9 '07 #6
rcollins
234 100+
What more details do you want?
Mar 12 '07 #7
NeoPa
32,556 Expert Mod 16PB
What more details do you want?
A strange question considering you've supplied none as yet.
  • Names of controls.
  • MetaData of your tables.
  • RecordSource of your report.
  • Grouping of your report.
  • What you want totalled and how (Remember you can total by Groups as well as overall).
Mar 12 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Yaroslav Bulatov | last post by:
I made an array of 10 million floats timed how long it takes to sum the elements, here's what I got (millis): gcc -O2: 21 Python with numarray: 104 Python with Numeric: 302...
2
by: SunMan | last post by:
Hello! I am trying to create a program that will ask for a user to enter a series of letters (codes) and then print out a table that shows the codes in decending frequency. Only letters will be...
2
by: Targa | last post by:
<input NAME="TAXRATE" onBlur="this.form.TAX.value = (this.form.TAXRATE.value - 0) * (this.form.ITEM1TOTAL.value - 0) + (this.form.ITEM2TOTAL.value - 0) " Size="4"> In my TAX field I get...
7
by: Hank | last post by:
I have a report-summing problem using Access 2000. When a section runs over the end of the page, sometimes a detail gets picked up twice. Example: Customer Header XYZ Company Detail Section...
2
by: MrL8Knight | last post by:
I am building a simple shopping cart and I am having problems trying to add the costs of the items to generate a total cost. I am new at this so forgive me if my technical verbiage isn’t the...
0
by: CaptainDahlin | last post by:
Access 2003 Report rptWhiteMailDeposit I have found the "four lines of code" solution to adding sums to page footers and it is working...mostly. (if report is only one page long it doesn't...
12
by: neeraj | last post by:
Hi Can any body give me the syntax for summing the elements of the an array , without looping thanks
1
by: HERNDON | last post by:
Please help. I am creating a database at work and have run into some issues. One of the reports to be generated has total summarizing at the end for info to be filtered from one or more forms. I...
7
by: lethek39 | last post by:
Hey I have been trying to figure out how to sum rows and columns in a matrix square. I also have been trying to get the program to list the numbers of the diagonal in the matrix. So far this is the...
4
by: PW | last post by:
How do you do it? I need to sum a field within a group after the group changes and put it in the group footer. Referral Header Referral Name Detail Referral Dollars Referral Footer Total...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.