controls on reports

RpbertS

Registered User.
Local time
Today, 01:23
Joined
Feb 14, 2000
Messages
93
hi I have a report that whena certain condition is met I want certain controls to not be visible when printed.

---------code----
If Subprojects.Value = "" Then
GroupHeader1.Visible = False
End If
--------code-----
pretty simple, I expected the whole header and the controls in it to be invisible when the condition was met, except only the first control in the header is the onle one affected, I can't seem to refer to the controls individually either I tried it on the 3 different events also, any ideas ?

thanks for the time,
Rpb
 
OnFormat()

If Subprojects = "" Then
[MyControl1].Visible = False
[MyControl2].Visible = False
etc etc...
Else
[MyControl1].Visible = True
[MyControl2].Visible = True
End If
 

Users who are viewing this thread

Back
Top Bottom