Solved

MS Access reoprts - multiple queries seperate pages

Posted on 2011-03-18
5
294 Views
Last Modified: 2012-05-11
I have hundreds of records of items pertaining to problems in a building. I want to print a report that will print one page per records for the same room. There could be as many as 200 rooms Each record has a room number field. I can create separate queries for each room, but that would take way too much time. There will be a varying amount of records per room depending on how many problems are found. Is there any way to run through the room number fields and for each one, group them on a page?
0
Comment
Question by:wlamore
  • 2
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
RemRemRem earned 250 total points
ID: 35168914
In your Sorting And Grouping tool on the form's design side, set the top sort field to your room number.  You can then add any other sorts you want in after that, but make sure you set Group Footer to Yes on this Room sort layer. It will create a section of the report for the footer. Close the Sorting and Grouping and open the properties for the bar at the top of the newly formed footer section. Set Force New Page to After Section. (You can also turn on the Group Header and simply show your Room Number field in that header section, turning on repeat, to give you a nice clear view on each page as to which room it refers to.)

Note that if you have more than one page's worth of records, you'll get two (or more pages) for that room, but it will still start a new page for the next room.
-Rachel
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 35172980
I think RemRemRem's post will get you what you are really after

I want to print a report that will print one page per records for the same room. There could be as many as 200 rooms

So, for example, if Room 101 had 14 records (Problems) then you would want 14 pages?
Put another way,...
If the building had 200 rooms and each room had an average of 10 Problem/Records you would want 2,000 pages!?

If so then group by room as RemRemRem suggests, then set the "force New Page" property of the *Detail* Section to: After Section

Sample illustrating both techniques is attached.
Please verify

No points wanted if RemRemRem suggestion is what you wanted...
;-)

Jeff
db341.mdb
0
 

Author Comment

by:wlamore
ID: 35179974
boaq2000,
 Thanks for the file and clarification. Yes, I needed the rooms problems grouped together on their own page. We need to distribute the only the problems particular to each room, in hard copy form, to each room.
0
 

Author Closing Comment

by:wlamore
ID: 35179984
Thanks,
 Exactly what I needed.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 35182549
;-)
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now