Solved

How do I print one record per page on access report

Posted on 2011-09-09
25
561 Views
Last Modified: 2012-05-12
I’m trying to develop an Access report based on a query which is related to four tables (tblPurchase, tblPurchaseDetails, tblVendor and tblFCP.  I would like to print one record per page. The report prints ok when there is only one record selected however when multiple records are selected some pages contain multiple records. My question is – how do I print one record per page when multiple records are selected?
Purchase-V1.accdb
0
Comment
Question by:shieldsco
  • 14
  • 9
25 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
Comment Utility
When posting a sample database, please post the explicit steps to replicate the issue.
(when multiple records are selected)
Selected How?, where?
Which form?
Which report?
What are you considering a "Record"?
...etc


My brute force guess is that you should set the "Force New Page" property of the PDate footer to: After Section



JeffCoachman
0
 

Author Comment

by:shieldsco
Comment Utility
wrong answer -- see the attached database for full details
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
Comment Utility
Again,...

When posting a sample database, please post the explicit steps to replicate the issue.
(when multiple records are selected)
Selected How?, where?
Which form?
Which report?
What are you considering a "Record"?
...etc

Also post a clear graphical example of the exact output you are expecting.

In any event...
Second brute force guess: Set the "Force New Page" property of the Detail section to: After Section
0
 

Author Comment

by:shieldsco
Comment Utility
wrong answer again - when mutiple  records with the same vendor are selected they are combined on the same page, I have attached the updated database. Step 1 - open the frm1Selection. Step 2- Enter the Beg Date 9/1/2011 -- Enter Ending Date 9/30/2011. Step 3 - Click on the Preview Purchase Card tab.. Notice that record 3 detail consists of 2 records. Hope that helps
Purchase-V1.accdb
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
Comment Utility
OK, I'm noticing a trend here...

Can you not blurt out things like "Wrong Answer"... as the first words in your post.
This can be taken as being rude, and unappreciative.

I see that you are a relatively new member here, and you may not be familiar with the rules of etiquette here...
I also see that I helped you with a previous question without incident, so I don't know if this is just your way of communicating.

Remember that the very first thing I asked for was clarification.
Your second post starts off with "Wrong Answers", when you never clarified the question (as I had clearly asked for).
So I could have very well blurted back "Unclear Question"
But, out of respect,  I did not.

Your third post starts off again with a very blunt: "Wong Answer", ...when again, ...you never clarified the question or listed the steps to see the issue.

I am more than willing to assist you, as I did before.
But we need to start off from a position of mutual respect.
Sound fair?


JeffCoachman
0
 

Author Comment

by:shieldsco
Comment Utility
ok what is the solution
0
 

Author Comment

by:shieldsco
Comment Utility
I think your perception is totally incorrect. It appears to me that you are letting words affect your feelings. This is about finding a solution to a question.  Please do not get offended by my words -- I’m thankful for your help.  Do you have a proposed solution? If you feel like you do not want to help me then that is fine and I will find a  new resource.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
Comment Utility
No problems here, I am working on a solution now...

;-)

Jeff
0
 

Author Comment

by:shieldsco
Comment Utility
ok thanks
0
 

Author Comment

by:shieldsco
Comment Utility
Modguy - it appears to me take you are really making a big deal out of nothing. I do not have time to get into a word contest with you. I looking for a solution to the question I posed. So in the future please do not send comments that do no pertain a solution. I pay a fee for your service each month so I suggest that you LEAP -- Listen, Empower, Apologize, and have an action plan for unsatisfied customers. As I mentioned in the earlier post if a solution is not forthcoming then I will find another resource. Just let me know. Have a good day.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
Comment Utility
Well, I am still willing to help.


The issue here is that the report is grouped by the day.

This means that one day can have many records form different people.

I'll play around with this first, then report back,  but my guess is that you must group the report by Person first, then by the date.

JeffCoachman
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:shieldsco
Comment Utility
ok thanks Jeff - I appreciate your effort
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
Comment Utility
OK,

A few things are affecting this:
1. Your query for the report is grouped, but the report is also grouped.  I don't see the need to group twice.
2. Your Date criteria is "Due Date", yet the grouping field is PDate.  Is this correct?
3. There is no primary key field in the query, so it is difficulty to figure out what is the master field and what is the Grouping field.
3. You are grouping by PDate, yet the Groping fields have more to do with the vendor, than the date.


So you must first tell me exactly what this report is trying to display

JeffCoachman
0
 

Author Comment

by:shieldsco
Comment Utility
I would like a new page for each purchase in the tblPurchase. I would like to see the related detail records from the tblPurchaseDetails and header information from the tblVendor. This information is based on input  from the frmSelection1 form. Hope this helps.
0
 

Author Comment

by:shieldsco
Comment Utility
Jeff - I have figured it out with your help. I just needed to group on the purchase ID (PID). Just one slight problem -- when there are more than 7 detail records they are not included. Can you help?
0
 

Author Comment

by:shieldsco
Comment Utility
Jeff - clification when more than 7 detail records are in the tblPurchaseDetails only 7 are included in the report
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
Comment Utility
There is nothing in the report that is set that would limit the number of records

Perhaps the report's design will only allow for 7 records...
Try shrinking the size of the sections.

I noticed that your sections were bigger than they had to be.
0
 

Author Comment

by:shieldsco
Comment Utility
I tried shrinking the size of the sections with no luck -- do you have any other suggestions
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
Comment Utility
Post the DB as it stands now
0
 

Author Comment

by:shieldsco
Comment Utility
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
Comment Utility
The Report is the same as the last sample, so it looks like you did not do anything?

In any event, PID 9 only has 7 records, ...check your query...
0
 

Author Comment

by:shieldsco
Comment Utility
I added the Line Number to the query and it works fine. Thanks for the help
0
 

Author Closing Comment

by:shieldsco
Comment Utility
Good Job
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
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…

743 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

17 Experts available now in Live!

Get 1:1 Help Now