I have a combo box, Products, which lists:
BASIC
CHG
CONV
NAT
OS
REV
SP
SS
SUP
TP
I have 5 text fieds which are: BasicThrough, ChgNo, SuppLetter, RevNo, TPNo. The Visible property of all of these text fields is set to No.
If the combo value "Basic" is selected then I want the BasicThrough text fied to become visible and the rest to stay not visible.
If the combo value "CHG" is selected then I want the ChgNo text field to become visible and the rest stay not visible etc.
At first I was going this route:
If Products.value = "BASIC" Then
BasicThrough.visible = true
End if
But that wasn't working.
I tried a select Case
Select Case Product.Value
Case "BASIC"
BasicThrough.Visible = True
ChgNo.Visible = False
SuppLetter.Visible = False
RevNo.Visible = False
TPNo.Visible = False
Case "CHG"
BasicThrough.Visible = False
ChgNo.Visible = True
SuppLetter.Visible = False
RevNo.Visible = False
TPNo.Visible = False
......etc.
End Select
That also didn't work with me. Don't know what I'm doing wrong, and what would be the simplest way of doing it.
Thanks.
BASIC
CHG
CONV
NAT
OS
REV
SP
SS
SUP
TP
I have 5 text fieds which are: BasicThrough, ChgNo, SuppLetter, RevNo, TPNo. The Visible property of all of these text fields is set to No.
If the combo value "Basic" is selected then I want the BasicThrough text fied to become visible and the rest to stay not visible.
If the combo value "CHG" is selected then I want the ChgNo text field to become visible and the rest stay not visible etc.
At first I was going this route:
If Products.value = "BASIC" Then
BasicThrough.visible = true
End if
But that wasn't working.
I tried a select Case
Select Case Product.Value
Case "BASIC"
BasicThrough.Visible = True
ChgNo.Visible = False
SuppLetter.Visible = False
RevNo.Visible = False
TPNo.Visible = False
Case "CHG"
BasicThrough.Visible = False
ChgNo.Visible = True
SuppLetter.Visible = False
RevNo.Visible = False
TPNo.Visible = False
......etc.
End Select
That also didn't work with me. Don't know what I'm doing wrong, and what would be the simplest way of doing it.
Thanks.