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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top