Automatically close report

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
 
O

Ofer

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"
 
Top