A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

check report is open



 
 
Thread Tools Display Modes
  #1  
Old May 26th, 2010, 04:05 PM posted to microsoft.public.access
Sue[_9_]
external usenet poster
 
Posts: 65
Default check report is open

Hi all

I want to check if a report is open before running a bit of code on another
report, is there a command to easily check for this?

Thanks, Sue


  #2  
Old May 26th, 2010, 04:32 PM posted to microsoft.public.access
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default check report is open

Application.CurrentProject.AllReports("NameOfRepor t").IsLoaded

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
(no e-mails, please!)

"Sue" wrote in message
...
Hi all

I want to check if a report is open before running a bit of code on
another report, is there a command to easily check for this?

Thanks, Sue



  #3  
Old May 26th, 2010, 04:47 PM posted to microsoft.public.access
Sue[_9_]
external usenet poster
 
Posts: 65
Default check report is open

Thanks, great as ever :-)

"Douglas J. Steele" wrote in message
...
Application.CurrentProject.AllReports("NameOfRepor t").IsLoaded

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
(no e-mails, please!)

"Sue" wrote in message ...
Hi all

I want to check if a report is open before running a bit of code on
another report, is there a command to easily check for this?

Thanks, Sue





  #4  
Old May 27th, 2010, 10:23 PM posted to microsoft.public.access
Daniel Pineault
external usenet poster
 
Posts: 658
Default check report is open

You could do something like:

If CurrentProject.AllReports("YourReportName").IsLoad ed = True Then
'If you are here, the report is currently open
End If
--
Hope this helps,

Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.



"Sue" wrote:

Hi all

I want to check if a report is open before running a bit of code on another
report, is there a command to easily check for this?

Thanks, Sue


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.