I have the following code in a report module:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me!srRemarks.Visible = Me!srRemarks.Report.HasData
Me!srDates.Visible = Me!srDates.Report.HasData
Me!srEngineers.Visible = Me!srEngineers.Report.HasData
End Sub
This used to work like a charm a couple of months ago when I last visited the
report. Now I get the subject error.
All of a sudden Me!srRemarks.Report.HasData generates an error. Any
suggestions would be appreciated.
Thanks,
Bill
Duane Hookom - 30 Nov 2005 23:09 GMT
Do you realize that if a subreport doesn't have data, it won't appear even
if you want it to? I doubt you need any code to do this.

Signature
Duane Hookom
MS Access MVP
--
>I have the following code in a report module:
>
[quoted text clipped - 14 lines]
>
> Bill