D
Davo78
Hi All
I am currently upgrading a DB from Access 2000 to 2007.
I have been using a Form "Report Date Range" which has the following :
Private Sub Report_Open(Cancel As Integer)
DoCmd.OpenForm "Report Date Range", , , , , acDialog, "Payments Due"
If Not IsLoaded("Report Date Range") Then
Cancel = True
End If
End Sub
Private Sub Report_Close()
DoCmd.Close acForm, "Report Date Range"
End Sub
Private Sub Report_NoData(Cancel As Integer)
MsgBox "There is no data for this report. Canceling report..."
Cancel = -1
End Sub
This works fine in 2000 but I get error message in 2007:
MS VB -- Compile Error: Sub or Function not defined, with "IsLoaded"
highlighted, I have not been able find a solution, can anyone help.
Thanks in advance
Davo
I am currently upgrading a DB from Access 2000 to 2007.
I have been using a Form "Report Date Range" which has the following :
Private Sub Report_Open(Cancel As Integer)
DoCmd.OpenForm "Report Date Range", , , , , acDialog, "Payments Due"
If Not IsLoaded("Report Date Range") Then
Cancel = True
End If
End Sub
Private Sub Report_Close()
DoCmd.Close acForm, "Report Date Range"
End Sub
Private Sub Report_NoData(Cancel As Integer)
MsgBox "There is no data for this report. Canceling report..."
Cancel = -1
End Sub
This works fine in 2000 but I get error message in 2007:
MS VB -- Compile Error: Sub or Function not defined, with "IsLoaded"
highlighted, I have not been able find a solution, can anyone help.
Thanks in advance
Davo