W
wrldruler
Hello,
Here is a strange problem that I am having on a couple reports which
are designed the same.
I donwloaded a calendar report off a popular Access site (can't
remember which one). And I customized it. It's got one sub-report,
that is copied 30+ times on the report. I then iterate through
controls to set the appropriate dates, draw the lines, etc.
When I first Preview the report, January has the correct dates and
lines. But there is no data in the subreport.
I hit the Record > button, and February loads perfectly. I hit Record
back < and January still has no data.
Here is the strange part: I change to Design View, then switch right
back to Preview. Suddenly January has data.
So, January (or whatever first month I tell to load first) does not
load data to the sub-report unless I switch from preview, to Design,
and back to Preview.
On my forms, I've been forced to call the report using the following:
DoCmd.OpenReport "rpt_ReleaseCalendar", acPreview
DoCmd.OpenReport "rpt_ReleaseCalendar", acViewDesign
DoCmd.OpenReport "rpt_ReleaseCalendar", acPreview
Anybody know why this is happening?
Thanks,
Chris
Here is a strange problem that I am having on a couple reports which
are designed the same.
I donwloaded a calendar report off a popular Access site (can't
remember which one). And I customized it. It's got one sub-report,
that is copied 30+ times on the report. I then iterate through
controls to set the appropriate dates, draw the lines, etc.
When I first Preview the report, January has the correct dates and
lines. But there is no data in the subreport.
I hit the Record > button, and February loads perfectly. I hit Record
back < and January still has no data.
Here is the strange part: I change to Design View, then switch right
back to Preview. Suddenly January has data.
So, January (or whatever first month I tell to load first) does not
load data to the sub-report unless I switch from preview, to Design,
and back to Preview.
On my forms, I've been forced to call the report using the following:
DoCmd.OpenReport "rpt_ReleaseCalendar", acPreview
DoCmd.OpenReport "rpt_ReleaseCalendar", acViewDesign
DoCmd.OpenReport "rpt_ReleaseCalendar", acPreview
Anybody know why this is happening?
Thanks,
Chris