473,666 Members | 2,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Combo box multiple selection solution

1 New Member
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","vegeta bles".
Combo box 2:"apple","bana na","mango". when user selects fruit
:"water","milk" .when user selects drinks
:"lettuce","cuc umber" ... 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 6185
nico5038
3,080 Recognized Expert Specialist
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","vegeta bles".
Combo box 2:"apple","bana na","mango". when user selects fruit
:"water","milk" .when user selects drinks
:"lettuce","cuc umber" ... 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
gank456
2 New Member
@Alo2aaa
Could you please provide the code module??
and using which programming language have u done this??
Mar 26 '10 #3
missinglinq
3,532 Recognized Expert Specialist
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
2965
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 when selection is made..... 2. I also want to use one combo box to select a second set of criteria in a second combo box that is then used to refine displayrd records in a a subform.... am afraid im lost on this..??? I have a main table that...
6
19535
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 customer name and other relevant information, such as: Company contact Delegate name Delegate ID Delegate Discipline Course date Course location Course requirements to appear so the result show x of x records?
3
2107
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 has a primary key(MEDRECNO). What I want to do is create a search form with a combo box containing field columns: MEDRECNO, LNAME, and FNAME from tblOncRegMain. When the appropriate record is selected from the combo box, I want to be able to hit...
2
1893
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 mastercard is selected I would love some text boxes to appear for credit card details. I did it with check boxes but cant make it go for combo boxes. Thanks for any help. Eddie
3
2372
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 Subform is,"Area14". I also have the combo box populating other fields in my form. I am running Vista Home Premium with Access 2007. Thanks for any info!
1
1629
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 value from the Combo Box that value appears in the Combo Box on all the records regardless of what record I am
27
3883
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 selecting gloves by commodity number because they are 7 digit numbers that make no literal sense. DB users will select what a customer needs by two combo boxes, first by class, then by size. Question 1. Class 3 only has 4 sizes available. Class 2...
3
2515
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 we have two combo box selection lists, left one and right one, left one is the main one and the right one is the child of the left one. when i select a item from the left combo box the right combo box's content should be changed according to the...
0
8454
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8883
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8787
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8561
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7389
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1778
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.