Use subreport twice on same report

kaykrazy

Board Regular
Joined
Nov 4, 2002
Messages
63
I have a report where the recordsource returns only the previous week.
I also want to use the same report where the the previous year is returned.
I have the 2 subreports in the detail section. The parent is just a dummy report to hold the two subreports together.

I am trying to set the recordsource of each subreport from its parent report by referencing the control name.

I get an error if I try to set it in the Open event. It will execute if I move it to the detai.

I'm a little rusty in MS Access. If I can't get it to work, I'll create 2 separate subreports.

Kathy


I am using Access 2000
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Probably best to use different subreports -- just take the second, adjust the date range on the query, and give it a new name. Then delete the second copy of the original from the main report and add the new subreport instead.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,569
Messages
6,160,557
Members
451,656
Latest member
SBulinski1975

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top