Multi combo box

charlee63

Board Regular
Joined
Jan 7, 2010
Messages
133
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
 

Micron

Well-known Member
Joined
Jun 3, 2015
Messages
1,767
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
 

Forum statistics

Threads
1,081,996
Messages
5,362,612
Members
400,684
Latest member
Vie

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top