Solved

How do I print one record per page on access report

Posted on 2011-09-09
25
566 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 14
  • 9
25 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36514880
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
ID: 36516200
wrong answer -- see the attached database for full details
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36516507
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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:shieldsco
ID: 36516882
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
ID: 36517322
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
ID: 36517336
ok what is the solution
0
 

Author Comment

by:shieldsco
ID: 36517429
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
ID: 36517547
No problems here, I am working on a solution now...

;-)

Jeff
0
 

Author Comment

by:shieldsco
ID: 36517611
ok thanks
0
 

Author Comment

by:shieldsco
ID: 36522066
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
ID: 36523171
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
 

Author Comment

by:shieldsco
ID: 36523204
ok thanks Jeff - I appreciate your effort
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36523998
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
ID: 36524336
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
ID: 36524378
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
ID: 36524541
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
ID: 36524865
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
ID: 36525171
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
ID: 36525553
Post the DB as it stands now
0
 

Author Comment

by:shieldsco
ID: 36526606
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 36526947
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
ID: 36528786
I added the Line Number to the query and it works fine. Thanks for the help
0
 

Author Closing Comment

by:shieldsco
ID: 36528794
Good Job
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

735 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