B
Bill R via AccessMonster.com
OK. I'll try to get some help with this by breaking it down to its parts
(I've gotten no response to my other posts on the subject). The most
difficult part is trying to print a series of reports, based on the same
report object, using a static date criteria, and a changing number. So the
report header would look like:
Date: 9/25/2005 IPT: 10
and the detail of the report would reflect these 2 criteria. Then the report
would print and go on to the next IPT:
Date: 9/25/2005 IPT:15
and print it and so on, ...
My first problem is in code behind a form cmd button that I'm trying to use
to put together the SQL for the report's record source. When I try to set the
report variable (set rpt = Reports!rptDailyIPTMtg) I get runtime error 2451:
"The report name 'rptDailyIPTMtg' you entered is misspelled or refers to a
report that isn't open or doesn't exist". It is neither misspelled nor non-
existent. As far as "open" is concerned, that's a little confusing, isn't it?
The upshot is I probably won't be able to use the report object to change
recordsource in code in the form.
I can't figure out a way to cycle through the IPTs and print individual
reports for them based on the same date. I can't imagine how I could use
field references to the popup form I'm trying to use to run the reports. Is
there any way short of creating 20 different reports to accommodate all 20
IPTs?
(I've gotten no response to my other posts on the subject). The most
difficult part is trying to print a series of reports, based on the same
report object, using a static date criteria, and a changing number. So the
report header would look like:
Date: 9/25/2005 IPT: 10
and the detail of the report would reflect these 2 criteria. Then the report
would print and go on to the next IPT:
Date: 9/25/2005 IPT:15
and print it and so on, ...
My first problem is in code behind a form cmd button that I'm trying to use
to put together the SQL for the report's record source. When I try to set the
report variable (set rpt = Reports!rptDailyIPTMtg) I get runtime error 2451:
"The report name 'rptDailyIPTMtg' you entered is misspelled or refers to a
report that isn't open or doesn't exist". It is neither misspelled nor non-
existent. As far as "open" is concerned, that's a little confusing, isn't it?
The upshot is I probably won't be able to use the report object to change
recordsource in code in the form.
I can't figure out a way to cycle through the IPTs and print individual
reports for them based on the same date. I can't imagine how I could use
field references to the popup form I'm trying to use to run the reports. Is
there any way short of creating 20 different reports to accommodate all 20
IPTs?