T
terry w
Form frmParts has a command button used to print reports. The button's click
event has code DoCmd.OpenReport strRptName, acViewPreview
Often I don't print the report, but just examine it. Then I'll get a new
value from the form's combbox and click the command button to preview the
same report but with different date ranges, etc.
My question is this - I always have to manually close the 1st Preview
window before opening the 2nd. I need the command button, in English, to do
this: if the report I'm trying to preview already has an earlier preview
version open, then close it before opening the new preview. What is a good
way to do this?
event has code DoCmd.OpenReport strRptName, acViewPreview
Often I don't print the report, but just examine it. Then I'll get a new
value from the form's combbox and click the command button to preview the
same report but with different date ranges, etc.
My question is this - I always have to manually close the 1st Preview
window before opening the 2nd. I need the command button, in English, to do
this: if the report I'm trying to preview already has an earlier preview
version open, then close it before opening the new preview. What is a good
way to do this?