CJBIRKIN
Drink!
- Local time
- Today, 09:37
- Joined
- May 10, 2002
- Messages
- 255
Hello
I have a report with a dynamic recordsource that is created from selections made on a form.
For efficiencies sake I want to open mulitple instances of the same report using a loop. Each report has a different set of parameters for the recordsource query. The reports need to be previewed by the user before printing.
Can anyone help?
Thanks Chris
Dim WAITCOUNT As Integer
WAITCOUNT = 0
Do Until WAITCOUNT = CMBO_MONTHS_AHEAD + 1
' function passes data to variables which are used to create recordsource for the report
OPENROLLINGREPORT CMBO_MONTHS_WAIT, CMBO_MONTHS_AHEAD
DoCmd.OpenReport "IP_PTL_ROLLING_IP_REPORT", acViewPreview
WAITCOUNT = WAITCOUNT + 1
Loop
I have a report with a dynamic recordsource that is created from selections made on a form.
For efficiencies sake I want to open mulitple instances of the same report using a loop. Each report has a different set of parameters for the recordsource query. The reports need to be previewed by the user before printing.
Can anyone help?
Thanks Chris
Dim WAITCOUNT As Integer
WAITCOUNT = 0
Do Until WAITCOUNT = CMBO_MONTHS_AHEAD + 1
' function passes data to variables which are used to create recordsource for the report
OPENROLLINGREPORT CMBO_MONTHS_WAIT, CMBO_MONTHS_AHEAD
DoCmd.OpenReport "IP_PTL_ROLLING_IP_REPORT", acViewPreview
WAITCOUNT = WAITCOUNT + 1
Loop