
Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
See below
> You are trying to print a report that combines the information from a form
> and subform. The report should print the same info twice, with different
> titles.
Specifically, with different footers, Copy 1="Originator", Copy 2="Purchaser"
> I assume that the main form is bound to Table1, and the subform to a related
> Table2 (i.e. there is a one-to-many relation between Table1 and Table2).
Correct.
> Your query will therefore use Table1 and Table2, with a line joining them in
> the upper pane of the query design window. You then added tblCount to the
> query as well, so you get 2 of everything when you view the output of the
> query.
The report was not based on a query. I used "save as" on the form to create
a report. So if I look at the record source in the report for the main form
data is lists PRrequisition table, if I look at the record source in the
report for the subform data is lists PRItems table.
> Once the query is working correctly, use it as the RecordSource for your
> report. No subreport is needed. You can then add the Group Header for the
> CountID field, by making that field the first entry in the report's Sorting
> And Grouping box. Your report will now give you the 2 copies.
One thing I'm not clear on....when I create a query for this:
Should it be a single query with the PRReq, PRItem, and Count tables added to
it? And then specify the same query in the record source for main and
subform sections of the report?
> > I'm using the method you described to print multiple copies with different
> > header text except I'm using it for footers on a report that is based on a
[quoted text clipped - 47 lines]
> >> query at step 3. Then at step 4, change the RecordSource property of the
> >> report to the name of the query.)
Allen Browne - 24 Jan 2006 01:54 GMT
You do not really need a subreport for this. Just create the query from the
3 tables (2 joined, tblCount not joined), and then set it as the
RecordSource of the report. Since all the fields you want from all tables
can be in the report, a subreport is not needed.
Once the query is the RecordSource of the report, you can choose the counter
field in the Sorting And Grouping box, and set the Group Footer to Yes in
the lower pane of that dialog. You then have the group footer to put your
copy number/description into.

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
> See below
>
[quoted text clipped - 96 lines]
>> >> the
>> >> report to the name of the query.)
Tec92407 - 25 Jan 2006 17:24 GMT
Allen
I change the report so it is designed as you described, without using a
subreport.
The report works like you described and like I wanted.
Thanks very much for your help.
> You do not really need a subreport for this. Just create the query from the
> 3 tables (2 joined, tblCount not joined), and then set it as the
[quoted text clipped - 106 lines]
> >> >> the
> >> >> report to the name of the query.)
Tec92407 - 29 Jun 2006 21:43 GMT
Addtional question:
Currently, If I press my custom Print button, and Orignator and purchaser
copy is printed. I'd also like to selectivly print either the Originator or
Purchaser copy.
Is there a way to do that?
> Allen
>
[quoted text clipped - 113 lines]
> > >> >> the
> > >> >> report to the name of the query.)