IsLoaded not working

N

Nylex

This is a function that I copied from a Downloaded Template and it works fine
Private Sub Report_Open(Cancel As Integer)
If Not IsLoaded("Purchase Orders") Then
MsgBox "Open this report using the Preview button on the Purchase
Orders form."
Cancel = True
End If
End Sub
I imported it into my Current Database and altered the form Name only

Private Sub Report_Open(Cancel As Integer)
If Not IsLoaded("Orders") Then
MsgBox "Open this report using the Preview button on the Orders form."
Cancel = True
End If
End Sub
When I open the Report I get the following message
Compile Error: Sub or Function not defined and it stops and highlight
“IsLoadedâ€
Don’t know where to look to fix the problem?
 
J

JohnC

Perhaps you also need to import the function "IsLoaded" into your database.
It might be under a standard module in the downloaded template.
John C.
 

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