I have a form where I prompt the user for criteria. When they click a button I bring up a Report (in Print Preview mode) which uses the criteria. The Report displays properly in the Preview and it is populated correctly. However, Access prints a screen shot of the Form that called the Report instead of the Report.
I use the following Code:
DoCmd.OpenReport ReportName:="rptTaxation", _
View:=acViewPreview
If I change the code and use:
DoCmd.OpenReport ReportName:="rptTaxation", _
View:=acViewReport
it seems to work fine.
What is also rather strange is I have 4 different sections on the Form. Each of those sections prompts for criteria and then opens a Report. Using the same code with "View:=acViewPreview" the other three work fine.
I would prefer to use the Print Preview. This is an application where the users only get the runtime version and it looks a bit nicer (I think anyway) to display the options they get in Preview.
At least I found a way to make it work but I would like to understand why this is happening.
Thanks kindly.
I use the following Code:
DoCmd.OpenReport ReportName:="rptTaxation", _
View:=acViewPreview
If I change the code and use:
DoCmd.OpenReport ReportName:="rptTaxation", _
View:=acViewReport
it seems to work fine.
What is also rather strange is I have 4 different sections on the Form. Each of those sections prompts for criteria and then opens a Report. Using the same code with "View:=acViewPreview" the other three work fine.
I would prefer to use the Print Preview. This is an application where the users only get the runtime version and it looks a bit nicer (I think anyway) to display the options they get in Preview.
At least I found a way to make it work but I would like to understand why this is happening.
Thanks kindly.