allisonrja
New member
- Local time
- Yesterday, 22:24
- Joined
- Jun 2, 2011
- Messages
- 2
I have a report with three subreports. I have code that determines which subreport to show. The code changes the visible property, true for the subreport to show and false for the subreports to not show.
I have a button on a form that opens the report.
I've tried both of these.
1) DoCmd.OpenReport strDocName, acViewPreview
This command shows the report correctly, however when I then select print the first subreport prints but the second and third subreport do not print. The code changes the visible property.
2) DoCmd.OpenReport strDocName, acViewNormal
This command prints the report correctly, to PDF or a printer directly.
The bottom line, the report works when printed directly however if first previewed then printed the report does not print correclty.
Any clues as to why?
Thanks,
Rick
I have a button on a form that opens the report.
I've tried both of these.
1) DoCmd.OpenReport strDocName, acViewPreview
This command shows the report correctly, however when I then select print the first subreport prints but the second and third subreport do not print. The code changes the visible property.
2) DoCmd.OpenReport strDocName, acViewNormal
This command prints the report correctly, to PDF or a printer directly.
The bottom line, the report works when printed directly however if first previewed then printed the report does not print correclty.
Any clues as to why?
Thanks,
Rick