|
-
Oct 22nd, 2002, 03:28 PM
#1
Thread Starter
Registered User
2 combo boxes
i have to combo boxed, in the first 1 i have around 5 items. In the second i have 0 items. how do i add items to the second combo box after selecting an item from the first 1
eg
if I select 1 from the first combobox, i want a, b, and e to be added to the second combo box which are not viewable until I click on the drop down button?
-
Oct 22nd, 2002, 03:43 PM
#2
Addicted Member
Not sure if this is exactly what your looking for
Code:
Private Sub Form_Load()
With Combo1
.AddItem "Hello"
.AddItem "How"
.AddItem "Are"
.AddItem "You?"
End With
End Sub
Private Sub Command1_Click()
Combo2.AddItem Combo1.Text
End Sub
.·*¨) ¸.·*¨) ¸.·*¨*
(¸.*´ ¸.·´*'~*Renee~* (¸.*´~*
Funny how the little things can stop you dead in your tracks. 
-
Oct 22nd, 2002, 03:53 PM
#3
Thread Starter
Registered User
I want items to be added to combo2 at runtime
e.g.
VB Code:
if combo1.text = "1" then
combo2.additem "a"
combo2.additem "b"
combo2.additem "c"
elseif combo1.text = "2"
combo2.additem "x"
combo2.additem "y"
combo2.additem "z"
elseif combo1..................... and so on
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|