I have a subreport that has three fields: Score, Result1, Result2
I have a code on the OnLoad event:
Me.Result1.Visible = False
Me.Result2.Visible = False
If Me.Score = 90 Then
Me.Result2.Visible = True
When the score is 90 then Result2 is visible, this works as expected. When I move this subreport onto the main report and link it then both fields are visible in PrintPreview. I have several other subreports with same problem. It seems that when I move them to the main report me.fieldname.visiblie = false stops working. Everything is visible in PrintPreview. Thanks.