473,545 Members | 2,679 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Report that is totals only

prn
254 Recognized Expert Contributor
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 3938
istya
35 New Member
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 Recognized Expert Contributor
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 Recognized Expert Contributor
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 Recognized Expert Contributor
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 Recognized Expert Contributor
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
4251
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 generated reflects those options? Another issue is that I want the report to show totals. These totals are organized with columns "Programs" and...
1
17646
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 Create a Dynamic Crosstab Report PRODUCT :Microsoft Access PROD/VER:1.00 1.10 OPER/SYS:WINDOWS
3
2717
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 reports at the plan (overall totals), department and division levels which have sorting and grouping implemented with this new
3
12106
by: Melissa | last post by:
What specifically causes the Format event of a report's section to fire? Thanks! Melissa
1
4490
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 StockOptions tbl. One client can have many types of StockShares and StockOptions. I need to detail the StockShares and StockOptions on one page. The...
4
3124
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 first query where Item is Null. I use a subreport for the details, and the results display correctly. However, the Report_Details event of the...
4
5646
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 (total 10 hours) and I have yet to resolve it. please excuse me for my lack of terminology, I will try to provide you with the best of information. ...
12
8012
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 shows one record amount. When I open the subreport alone, it totals the sum of all the records which the query pulls - which is what I want. The...
14
7829
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 has the following fields: SPID (supervisor ID), total:group by, as row heading Date, total:group by, as column heading Calls handled, total:sum,...
0
7685
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7452
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7784
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6014
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5354
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3485
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1039
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.