Hi,
I'm trying to add an If...Then code in my report to hide some fields. One the field is a descritption and if its equal to 5, 7, 8 or 10 I want it to be invisible. My code goes like this:
If Description1=(5 or 7 or 8 or 10) Then
Description1.Visible = False
Else
Description1.Visible = True
End if
The problem is that (5 or 7 or 8 or 10) doesn't seem to be recognize correctly. Is there another way to code this thing.
Frank
I'm trying to add an If...Then code in my report to hide some fields. One the field is a descritption and if its equal to 5, 7, 8 or 10 I want it to be invisible. My code goes like this:
If Description1=(5 or 7 or 8 or 10) Then
Description1.Visible = False
Else
Description1.Visible = True
End if
The problem is that (5 or 7 or 8 or 10) doesn't seem to be recognize correctly. Is there another way to code this thing.
Frank