-
hi,
Can anyoen tell me how to put a default value in the drop down combo box list? I'm talking about the value that pops up when the user starts the project.
Also, how would i change it at runtime? I mean, once the user clicks on the combo box selects whatever they want.. then they have to push a button to complete the action. I want it to go back to the defualt after they push the button..
please e-mail! :)
[email protected]
Thanks
Cisk
-
Put a Combo Box and Command Button on a Form
use the following;
Option Explicit
Private Sub LoadCombo1()
Combo1.Text = "Select From here"
Combo1.AddItem "Hello"
Combo1.AddItem "there"
End Sub
Private Sub Command1_Click()
Combo1.Clear
LoadCombo1
End Sub
Private Sub Form_Load()
LoadCombo1
End Sub