J
Julibee
I'm using a With ... End With to load values in a combo box. Can use an If
statement in that? The values I'm expecting aren't all appearing.
I have boolean variables set True/False depending on the selection the user
makes in one combo box. There are options in the second combo that I only
want to show if they chose the appropriate value in the previous box.
Code looks something like this:
Select Case Combo1
Case 0
bReason1=True
...do some other stuff ... 'the other stuff is happening so it is
getting to here
Case 1
bReason2=True
...more code for other cases ...
End Select
then later on
With Combo2
.clear
.AddItem ("something")
If bReason1=True then
.AddItem ("something you can only have if you chose #1 in Combo1 above")
End If
.AddItem ("something completely different")
End With
Thanks!
Julibee
statement in that? The values I'm expecting aren't all appearing.
I have boolean variables set True/False depending on the selection the user
makes in one combo box. There are options in the second combo that I only
want to show if they chose the appropriate value in the previous box.
Code looks something like this:
Select Case Combo1
Case 0
bReason1=True
...do some other stuff ... 'the other stuff is happening so it is
getting to here
Case 1
bReason2=True
...more code for other cases ...
End Select
then later on
With Combo2
.clear
.AddItem ("something")
If bReason1=True then
.AddItem ("something you can only have if you chose #1 in Combo1 above")
End If
.AddItem ("something completely different")
End With
Thanks!
Julibee