H
hughess7
I can not use the no data event on my main report to cancel opening as it
always has some data. If my subreport has no data though I would like the
main report to cancel opening.
Tried the following but I get error 2455, Invalid reference to the property
form/report
If Me![Expenses Weekly].Report.HasData = False Then
Cancel = True
Msg = "No Expenses for " & Forms![frm resource menu]![txtSpecialist] & _
" w/e " & Forms![frm resource menu]![StartDate] + 4
MsgBox Msg, vbInformation
End If
Can anyone help with this please?
Thanks
Sue
always has some data. If my subreport has no data though I would like the
main report to cancel opening.
Tried the following but I get error 2455, Invalid reference to the property
form/report
If Me![Expenses Weekly].Report.HasData = False Then
Cancel = True
Msg = "No Expenses for " & Forms![frm resource menu]![txtSpecialist] & _
" w/e " & Forms![frm resource menu]![StartDate] + 4
MsgBox Msg, vbInformation
End If
Can anyone help with this please?
Thanks
Sue