Copy a subform list box value to a form's combo box

guamlet

Board Regular
Joined
Dec 29, 2002
Messages
145
I have a form and subform. The for contains a combobox that, when a value is selected, will auto-fill the appropriate values in the subform. Also in the subform is a listbox that contains the last entry in a certain table. I would like to set a Double Click command that would transfer this value into the combobox. Please not that the value exists in the combobox, so it should be like typing the the string and having the combobox auto guess what you are typing, right? Any help?

Guamlet
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Problem Solved..

Me![Combo34]=lst42.Column(1,lst42.ListIndex)

This gives me the index for the value I want and Combo34 accepts it and converts it back to the string that the user understands.
 
Upvote 0

Forum statistics

Threads
1,221,556
Messages
6,160,476
Members
451,649
Latest member
fahad_ibnfurjan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top