S
Sakharam Phapale
Hi All,
How to fill one ComboBox from other ComboBox control?
1) Only setting the reference does the trick but doesn't show items in
control. If you see in immediate window, it shows the item count correctly
in destination ComboBox control.
Me.ComboBox1 = objFrmMain.ComboBox1
Or
2)should I loop through the Items collection of source ComboBox control and
add destination control item?
For intCount = 0 to objFrmMain.ComboBox1.Items.Count-1
Me.ComboBox1 = objFrmMain.ComboBox1.Items.Item(intCount)
Loop
Any help will be appreciated.
Thanks and Regards
Sakharam Phapale
How to fill one ComboBox from other ComboBox control?
1) Only setting the reference does the trick but doesn't show items in
control. If you see in immediate window, it shows the item count correctly
in destination ComboBox control.
Me.ComboBox1 = objFrmMain.ComboBox1
Or
2)should I loop through the Items collection of source ComboBox control and
add destination control item?
For intCount = 0 to objFrmMain.ComboBox1.Items.Count-1
Me.ComboBox1 = objFrmMain.ComboBox1.Items.Item(intCount)
Loop
Any help will be appreciated.
Thanks and Regards
Sakharam Phapale