Check if a report is open in VB

  • Thread starter Thread starter Max Moor
  • Start date Start date
M

Max Moor

Hi All,
What is the simple way to check, from VB, if a particular report is
already open? I'm just not finding it in the help.

Thanks, Max
 
In the latest versions, you can use:
CurrentProject().AllReports("MyReport").IsLoaded

For earlier versions:
SysCmd(acSysCmdGetObjectState, acReport, "MyReport")
 
In the latest versions, you can use:
CurrentProject().AllReports("MyReport").IsLoaded

For earlier versions:
SysCmd(acSysCmdGetObjectState, acReport, "MyReport")

Thanks, Allen. Works like a charm.
- Max
 

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