Set value of combobox through vba!

Miroslav

New member
Local time
Today, 02:15
Joined
Jan 28, 2015
Messages
7
I have form containing 8 comboboxes. On click on command button i want to set the item/caption/selection of combobox. How should I do that? Button has OnClick event built in VBA. What would be the code?
 
Something like...

Me.YourComboBox.RowSource = "Your SELECT Statement goes here"
Me.YourLabel.Caption = "Your Caption goes here"

I don't know what the Item is so can't help out there. The above goes in the Command Buttons On_Click event with the other stuff.
 
Thanks. It worked!
 

Users who are viewing this thread

Back
Top Bottom