Check if a report is open in VB

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
 
A

Allen Browne

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

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

Max Moor

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

Top