Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help! Change query to pull from Combo Box to a List Box

Status
Not open for further replies.

RDM23

Technical User
May 16, 2007
39
US
I currently have a form where I select from a combo box on a building location. My query then reads Like [Forms]![Form_Distribution_Selection_Criteria]![Building]
This returns the building I selected in the combo box. I would like to change from a combo box to a list box so I can select multi fields. I know how to change to a list box with Multi Field option checked. My question is this, What would I need to change my formula in my query to in order to pull multiple selections from my list box choices? Currently it reads:
Like [Forms]![Form_Distribution_Selection_Criteria]![Building]
 
What would I need to change my formula in my query
You can't.
The VBA help clearly states to people taking care to consult it that the ItemsSelected property can be accessed with VBA only.
Thus, a common way is to build dynamically with code the criteria.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top