Solved

MS Access reoprts - multiple queries seperate pages

Posted on 2011-03-18
5
280 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks,
 Exactly what I needed.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
Comment Utility
;-)
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.

Join & Write a Comment

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

771 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

15 Experts available now in Live!

Get 1:1 Help Now