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.
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.