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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Not IsLoaded



 
 
Thread Tools Display Modes
  #1  
Old August 22nd, 2006, 02:04 PM posted to microsoft.public.access.reports
alexanderrocks
external usenet poster
 
Posts: 1
Default Not IsLoaded

I need to find the "Not IsLoaded" command so that i can open a report with a
form. Access help tells you it is in the Northwind Sample database, which I
think I can get, but we have a tight beaurocracy here in public education and
it would take a number of steps to find. As I remember, the command is only
a few simple steps, but I cannot recall them at the moment.

tia,
ian
  #2  
Old August 22nd, 2006, 03:06 PM posted to microsoft.public.access.reports
Brendan Reynolds
external usenet poster
 
Posts: 1,241
Default Not IsLoaded

A number of different versions of the 'IsLoaded' function have shipped with
different versions of Access. This is the version from Access 2003. There is
no 'Not IsLoaded' command. 'Not' is a keyword that negates the value of the
expression that follows. 'If Not IsLoaded("SomeForm")' is equivalent to 'If
IsLoaded(SomeForm) = False'.

Function IsLoaded(ByVal strFormName As String) As Boolean
' Returns True if the specified form is open in Form view or Datasheet
view.
Dim oAccessObject As AccessObject

Set oAccessObject = CurrentProject.AllForms(strFormName)
If oAccessObject.IsLoaded Then
If oAccessObject.CurrentView acCurViewDesign Then
IsLoaded = True
End If
End If

End Function



--
Brendan Reynolds
Access MVP


"alexanderrocks" wrote in message
...
I need to find the "Not IsLoaded" command so that i can open a report with
a
form. Access help tells you it is in the Northwind Sample database, which
I
think I can get, but we have a tight beaurocracy here in public education
and
it would take a number of steps to find. As I remember, the command is
only
a few simple steps, but I cannot recall them at the moment.

tia,
ian



 




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 11:45 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.