A
Adrian
Using Access 2000 and SQL Server 2000
I have inherited a database (.adp) that sets the input parameters for
reports at run-time.
It then saves the report before opening it to display to the user. The input
parameters are passed to a stored procedure that is the data source of the
report.
This is a sample code:
DoCmd.OpenReport strRpt, acViewDesign
Reports(strRpt).InputParameters = strParams
DoCmd.Close acReport, strRpt, acSaveYes
DoCmd.OpenReport strRpt, lngReportAction
If the report is not saved first it runs much more quickly, but when the
user closes the report they are prompted if they want to save the changes.
Is there any way of stopping the users being prompted about the changes? Or
any other suggestions?
Thanks for any help.
Adrian
I have inherited a database (.adp) that sets the input parameters for
reports at run-time.
It then saves the report before opening it to display to the user. The input
parameters are passed to a stored procedure that is the data source of the
report.
This is a sample code:
DoCmd.OpenReport strRpt, acViewDesign
Reports(strRpt).InputParameters = strParams
DoCmd.Close acReport, strRpt, acSaveYes
DoCmd.OpenReport strRpt, lngReportAction
If the report is not saved first it runs much more quickly, but when the
user closes the report they are prompted if they want to save the changes.
Is there any way of stopping the users being prompted about the changes? Or
any other suggestions?
Thanks for any help.
Adrian