kaveman
Registered User.
- Local time
- Today, 03:05
- Joined
- May 12, 2004
- Messages
- 58
I have a label on my report that I want to be visible for certain customers but not for others. I have everything working properly but it required a lot of typing so I am wondering...Is there a better way?
Here is the code I used:
If txtCustCode = 903 Or txtCustCode = 904 Or txtCustCode = 907 Then
Label461.Visible = False
Else
Label461.Visible = True
End If
This is just a sample using three customers, my actually if then statement consisted of 50 customers (I told you there was a lot of typing). So I know there has to be a better way to get this done. So everyone, how would you have done this better?
Thanks everyone, I appreciate all your help.
Here is the code I used:
If txtCustCode = 903 Or txtCustCode = 904 Or txtCustCode = 907 Then
Label461.Visible = False
Else
Label461.Visible = True
End If
This is just a sample using three customers, my actually if then statement consisted of 50 customers (I told you there was a lot of typing). So I know there has to be a better way to get this done. So everyone, how would you have done this better?
Thanks everyone, I appreciate all your help.