Error Message

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can anyone tell me what might be wrong with this? I keep getting an error
message and everything seems to be in order. Maybe I'm missing something!

Private Sub Report_Open(Cancel As Integer)
DoCmd.OpenForm "Report Range", , , , , acDialog, "Attendance Summary"
If Not IsLoaded("Report Range") Then
Cancel = True
End If
End Su
.......................................................................................
The error message I get states:
Complie Error:
Sub or Function not defined
 
Yeah, your problem is that IsLoaded isn't a method or function, it's a
property.

You need something like:

dim frmReport as form
set frmReport = Forms![Report Form]

if frmReport.isloaded then

etc etc

hope this helps!

Dave
 
Back
Top