Heatshiver
Registered User.
- Local time
- Tomorrow, 05:02
- Joined
- Dec 23, 2011
- Messages
- 263
I have some code in the main report's On Load event that begins with:
Initially, I ran this in a module on the main report. When I run it I get the error. I have checked spelling for everything, but it is perfect. I also tried this code in the subreport itself as:
While this doesn't give an error, it doesn't do anything either... Any suggestions?
Code:
If Not Len(Reports![rptDRMCSCCD]![rsubPersonnel].Report.Namee1) > 0 Then
Reports![rptDRMCSCCD]![rsubPersonnel].Report.Namee1.Visible = False
Reports![rptDRMCSCCD]![rsubPersonnel].Report.ID1.Visible = False
Reports![rptDRMCSCCD]![rsubPersonnel].Report.Title1.Visible = False
Reports![rptDRMCSCCD]![rsubPersonnel].Report.Label12.Visible = False
Reports![rptDRMCSCCD]![rsubPersonnel].Report.Label14.Visible = False
Reports![rptDRMCSCCD]![rsubPersonnel].Report.Label16.Visible = False
End If
Code:
If Not Len(Me!Namee1) > 0 Then
Me!Namee1.Visible = False
Me!ID1.Visible = False
Me!Title1.Visible = False
Me!Label12.Visible = False
Me!Label14.Visible = False
Me!Label16.Visible = False
End If