473,387 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Combo box multiple selection solution

Dear all

i have two linked combo boxes (master/child) ,the user wants to have multiple selection from both combo boxes , can u tell me how can i store them in a way that i can have a unique id for the selected items from the first combo box and also to the items selected from the second combo box? because i want to retrieve them in a search page

ex:

Combo box1:"Fruits","drinks","vegetables".
Combo box 2:"apple","banana","mango". when user selects fruit
:"water","milk".when user selects drinks
:"lettuce","cucumber" ... when user selects vegetables

users can select fruit and drinks from the first combo and produce them in alist
and they cando the same with the second combo box to produce them in the same list or in new list ......... Please help it's urgent

if u want any details please ask
Oct 1 '07 #1
3 6146
nico5038
3,080 Expert 2GB
Dear all

i have two linked combo boxes (master/child) ,the user wants to have multiple selection from both combo boxes , can u tell me how can i store them in a way that i can have a unique id for the selected items from the first combo box and also to the items selected from the second combo box? because i want to retrieve them in a search page

ex:

Combo box1:"Fruits","drinks","vegetables".
Combo box 2:"apple","banana","mango". when user selects fruit
:"water","milk".when user selects drinks
:"lettuce","cucumber" ... when user selects vegetables

users can select fruit and drinks from the first combo and produce them in alist
and they cando the same with the second combo box to produce them in the same list or in new list ......... Please help it's urgent

if u want any details please ask
A combobox can't be used for multiple selections like a listbox.
You would need code to "remember" the selections and also a way to deselect erroneous selections... :-(

Personally I would offer two subforms, one for each combo.
These subforms are bound to a table1 with the "Category" and a YesNo field and the table2 would hold the products and also have a YesNo field.
Now the user can click the YesNo fields for selection and you can show a third subform at the bottom based on the searchpage query/table. This table can be JOINed with the table1 and table2 and when you add for the YesNo fields the criteria "True" (without quotes!), then the user will directly see the effect of the selections in the upper two subforms.

Idea ?

Nic;o)
Oct 6 '07 #2
@Alo2aaa
Could you please provide the code module??
and using which programming language have u done this??
Mar 26 '10 #3
missinglinq
3,532 Expert 2GB
A combobox can't be used for multiple selections like a listbox.
Actually, this statement is only true thru version 2003! Access 2007 added the multi-select capability to Comboboxes.

Welcome to Bytes, gank456!

Linq ;0)>
Mar 26 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: BigJay | last post by:
I am 1. trying to have a combobox used as a selector to display records in a subform. and not sure on how to get selected info into subform.the combo is populated but can not get subform updated...
6
by: Kazza | last post by:
Hi I'm using Access 2003 and I need to figure out how to display the record details based on a combo box selection. For example, when I select a company name in a combo box, how do I get the related...
3
by: sstasiak | last post by:
Hello all I have read similar threads on this site, but can't seem to get any of the solutions working for me. I have a main form(OncRegMain) that adds records to a table(tblOncReg). This table...
2
by: ebasshead | last post by:
Hi everyone, I'm having trouble getting my head around how to make a text box appear from a combo box selection. The combo box lists methods of payment eg cash, visa, mastercard. If visa or...
3
by: wideasleep | last post by:
Hello Everyone, I am looking for a way to trigger specific subforms to come up in a form through a combo box selection. For example purposes my selection in the combo box is CCP-03-081-FRM-14. The...
1
by: zufie | last post by:
Hi, When I make a selection from the drop down list of values on a Combo Box. The Combo Box is on a Form. The Combo Box selection appears on ALL of the records. That is, when I select one...
27
by: DanicaDear | last post by:
Dealing with electric utility rubber gloves..... tblCOMMODITY contains fields CLASS, SIZE, & COMMODITY_NUM (PK). A class combined with a size make a commodity number. I don't want the user...
3
by: ranga044 | last post by:
Hi Guys, I'm implementing a system these days, i want to implement a combo box selection process but i don't know how to implement it, so asking you guys favor? my scenario is this, let's say...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.