473,395 Members | 1,368 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,395 software developers and data experts.

Report that is totals only

prn
254 Expert 100+
Hi folks,

I'm looking for a little advice here. I need to create a report that is totals only, with no detail records. I have a database with a lot of individuals (people) and the report has to have some overall totals, totals per state, totals by gender, race/ethnicity, and several other criteria. This report does not need to (and should not) report on each individual, just the totals.

I can create expressions for each of the items I need, but the question I'm looking for advice on is how to organize the overall report. I'm guessing that I should do it as multiple subreports included in a master report. Does that seem like the best procedure? Or should I just put them all into a single master report? Are there any good rules of thumb for when one is a better idea than the other?

Also, when I go to create the (sub)reports (e.g., in "Design View") Access gives me only sections for "Headers/footers" and "Details". If I put the total section in "Details", then the result repeats the totals several hundred times, i.e., once for each individual, which I do not want. How best to print these totals once for the entire report/subreport? Logically, I don't want to consider the entire report to fall into a "Report Header" section, but I suppose that's what I may need to do to get them only once. Does anyone have a better idea?

Thanks for any thoughts you might have for me.

Paul
Sep 10 '07 #1
5 3930
istya
35
Does it have to be a report? You could do something like
Expand|Select|Wrap|Line Numbers
  1. SELECT state, race, sum(vlaue to be totaled)
  2. FROM table
  3. GROUP BY state, race;
  4.  
Which would give you totals for each state and race but nothing else.
Sep 10 '07 #2
mlcampeau
296 Expert 100+
Hi folks,

I'm looking for a little advice here. I need to create a report that is totals only, with no detail records. I have a database with a lot of individuals (people) and the report has to have some overall totals, totals per state, totals by gender, race/ethnicity, and several other criteria. This report does not need to (and should not) report on each individual, just the totals.

I can create expressions for each of the items I need, but the question I'm looking for advice on is how to organize the overall report. I'm guessing that I should do it as multiple subreports included in a master report. Does that seem like the best procedure? Or should I just put them all into a single master report? Are there any good rules of thumb for when one is a better idea than the other?

Also, when I go to create the (sub)reports (e.g., in "Design View") Access gives me only sections for "Headers/footers" and "Details". If I put the total section in "Details", then the result repeats the totals several hundred times, i.e., once for each individual, which I do not want. How best to print these totals once for the entire report/subreport? Logically, I don't want to consider the entire report to fall into a "Report Header" section, but I suppose that's what I may need to do to get them only once. Does anyone have a better idea?

Thanks for any thoughts you might have for me.

Paul
In report design view, click on the sorting and grouping button on the Report Design toolbar at the top of your screen. Choose your headers/footers sections that you would like to see from the field list in the drop down box (i.e. State, Gender, Race, etc.) then where it says Group Footer, change it to 'Yes'. If you're wanting the header as well, change that to 'Yes' also. Put your totals expressions in the footers of your groupings. You do not need to have anything in the details section, so just shrink that section down all the way so you don't end up with unwanted white space on your report.
Sep 10 '07 #3
prn
254 Expert 100+
Does it have to be a report? You could do something like
Expand|Select|Wrap|Line Numbers
  1. SELECT state, race, sum(vlaue to be totaled)
  2. FROM table
  3. GROUP BY state, race;
  4.  
Which would give you totals for each state and race but nothing else.
Well, Yes, I think I do need a report, not just a dozen or so ad-hoc queries. I need something that I can (have my client) print giving a lot of different statistics. I don't think just a bunch of queries would be acceptable. I may be able to use this SQL anyway for some of the items, though, so thanks. I appreciate any hints.

Paul
Sep 10 '07 #4
prn
254 Expert 100+
In report design view, click on the sorting and grouping button on the Report Design toolbar at the top of your screen. Choose your headers/footers sections that you would like to see from the field list in the drop down box (i.e. State, Gender, Race, etc.) then where it says Group Footer, change it to 'Yes'. If you're wanting the header as well, change that to 'Yes' also. Put your totals expressions in the footers of your groupings. You do not need to have anything in the details section, so just shrink that section down all the way so you don't end up with unwanted white space on your report.
Thanks, I'll try this and see what I can do to organize it this way. I take it that you intend this to go essentially for each of the subreports?

Thanks,
Paul
Sep 10 '07 #5
mlcampeau
296 Expert 100+
Thanks, I'll try this and see what I can do to organize it this way. I take it that you intend this to go essentially for each of the subreports?

Thanks,
Paul
I tend to try to stay away from subreports, mainly cuz I'm fairly new to this and it just seems to get messy that way and I can usually accomplish what I'm trying to do with one report. If you are able to get all the info you are looking for in one query, try to use just one main report and set up the grouping that way. Depending on how the results output, you may need to turn to subreports to get the correct totals you are looking for.
Sep 10 '07 #6

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

Similar topics

2
by: Steven Stewart | last post by:
Hi there, I don't have a lot of experience with this so I am looking for some help. I have a form that allows a user to choose the options she wants. How do I set it up so that the report...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
3
by: ahaque38 | last post by:
Hello. Using A2K SP3, I am having the following problem with a report using "Sorting and Grouping". I have recently added a grouping in the reports for "Category2<>'CONTRACTS'". I have...
3
by: Melissa | last post by:
What specifically causes the Format event of a report's section to fire? Thanks! Melissa
1
by: fixedpower | last post by:
I have an Access 2000 DB for a financial company. I have the table structure completed, but I am having trouble with the report. Basically, I have a Client tbl, a StockShares tbl, and a...
4
by: lorirobn | last post by:
Hi, I have a report displaying items that are missing from a room. I created 2 queries, the first getting the items IN the room, and the second being an "unmatched" query that references the...
4
by: Micheal | last post by:
Greetings Access Group, Being relatively new to Access, I try to work through problems on my own and have been very successful, although I have a conundrum that I have been working on for two days...
12
D Giles
by: D Giles | last post by:
Access 2003: A subreport control (sum total calculated textbox located in the subreport report footer) does not show total of all records when referenced as a total in the main report footer - only...
14
ollyb303
by: ollyb303 | last post by:
Hi, I am trying to create a dynamic crosstab report which will display number of calls handled (I work for a call centre) per day grouped by supervisor. I have one crosstab query (Query1) which...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.