If Not IsLoaded?

sullivan

Registered User.
Local time
Today, 07:06
Joined
Apr 24, 2001
Messages
48
There are directions in Alison Baxter's Access 2000 Development book for creating a form to skip labels on a label report. I'm having problems with the event procedure for the Report On Open Event. The book tells me to enter:

Private Sub Report_Open(Cancel As Integer)
If Not IsLoaded("frmClientLabelPosition") Then
MsgBox "You Must Run This Report From Label Criteria Form"
Cancel=True
Else
mboolFirstLabel=True
End If
End Sub

Once I have all the event procedures entered onto the report, and I run it, access gives me an error of "Compile Error: Sub or Function not defined" and then it highlights the word IsLoaded. I haven't been able to find much information on the IsLoaded function, I've found examples, but none of them are functioning as Not IsLoaded. Does anyone see what I'm missing, or what needs to be changed?
Thanks.
 
From the Access 97 help system:

The IsLoaded function is a sample Function procedure included with the Northwind sample database, and not a built-in Visual Basic for Applications function. To use the IsLoaded function in your database, first open the Northwind sample database, then copy the function, and paste it in a module in your database....
 

Users who are viewing this thread

Back
Top Bottom