Multi combo box

charlee63

Board Regular
Joined
Jan 7, 2010
Messages
144
This is my first time using Multi combo box.
I have a table named Vendor with a Multi combo box.

Data is
Vendor

AP Numbers 1
12003, 1240, 1561, 2296, 2308, 2693, 31198, 3257, 3913, 42716, 48628, 49589, 54329, 9506
How do I reference the numbers.

Function ShowControls()
Dim o As DAO.Recordset
Dim MyVendor1 As Variant

Set o = CurrentDb.OpenRecordset("Vendor")
MyVendor1 = o![Vendor Numbers 1]
qrySQLItems = "(((TblTeradata.Vendor) In (" & MyVendor1 & "))"

End Function
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Kinda confusing.
You have a combo with a row source that is a multi valued field? That combo's bound field is the one you're trying to get the data from?
MyVendor1 is whatever record your recordset happens to open to? There must be more to your function than you're showing because it doesn't do anything.
You might want to reconsider the multi value field thing unless it's absolutely necessary. Lots of info on the subject that you can find. Here's one
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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