Automatically close report

  • Thread starter Thread starter RipperT
  • Start date Start date
R

RipperT

Hi,

I am looking for code to put into a button's click event that will check to
see if a specific report is open and, if it is, close it.

Many thanx,

Rip
 
If you know which report you want to close, then just give the command to
close the report, if it's not open then it wont give you any error.

docmd.Close acReport,"MyReport"
 
Back
Top