473,461 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Choosing more than one selection in a list box

Hi guys, I know that I can select more than one option using a list box
by changing tha multi select option to simple or extended BUT,
How do I have to design my field on my table?
I have tried to use it in a form to select more than one room and I am
able to selected but seem like if doesnt record my selection.
I hope you all can help me.

Jul 18 '06 #1
3 4347
Create a related table, where you store the multiple selections as multiple
related records.

You do not ever put multiple different values all into one field, or in
multiple different fields in the one table.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<pe******@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Hi guys, I know that I can select more than one option using a list box
by changing tha multi select option to simple or extended BUT,
How do I have to design my field on my table?
I have tried to use it in a form to select more than one room and I am
able to selected but seem like if doesnt record my selection.
I hope you all can help me.

Jul 18 '06 #2
Allen thanks,
Can I create a different table with several fields
field1
field2
field3
etc...
according to how many options I have in the "List box" ?
my question would be: how to set my fields on my table as a text or
memo?
what would be my key in this new table?

thank you again..

Allen Browne wrote:
Create a related table, where you store the multiple selections as multiple
related records.

You do not ever put multiple different values all into one field, or in
multiple different fields in the one table.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<pe******@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Hi guys, I know that I can select more than one option using a list box
by changing tha multi select option to simple or extended BUT,
How do I have to design my field on my table?
I have tried to use it in a form to select more than one room and I am
able to selected but seem like if doesnt record my selection.
I hope you all can help me.
Jul 18 '06 #3
No, that's not right either.

If you are storing people's choice of colors, you will have:
Person table, with PersonID as primary key.
Color table, with ColorID as primary key
PersonColor table, to store the preferences:
PersonID relates to Person.PersonID
ColorID relates to Color.ColorID

If a person likes 5 colors, they have 5 entries in the PersonColor table.

For another example, see:
Relationships between Tables (School Grades example)
at:
http://allenbrowne.com/casu-06.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<pe******@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Allen thanks,
Can I create a different table with several fields
field1
field2
field3
etc...
according to how many options I have in the "List box" ?
my question would be: how to set my fields on my table as a text or
memo?
what would be my key in this new table?

thank you again..

Allen Browne wrote:
>Create a related table, where you store the multiple selections as
multiple
related records.

You do not ever put multiple different values all into one field, or in
multiple different fields in the one table.

<pe******@gmail.comwrote in message
news:11**********************@h48g2000cwc.googleg roups.com...
Hi guys, I know that I can select more than one option using a list box
by changing tha multi select option to simple or extended BUT,
How do I have to design my field on my table?
I have tried to use it in a form to select more than one room and I am
able to selected but seem like if doesnt record my selection.
I hope you all can help me.

Jul 18 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

114
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
1
by: Jean Biver | last post by:
Dear readers: I found a web page with 2 selection lists in a form. The contents of the second selection list are updated based on the entry in the first selection list. For example: if the...
18
by: booner | last post by:
I have a form that when it loads I would like to highlight the values (from a DB) that have been selected in a multiple selection list (<select multiple="true">. function onLoad() {...
8
by: Galina | last post by:
Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date. When faculty is selected, lists of lecturers and...
19
by: hansBKK | last post by:
Upfront disclaimer - I am a relative newbie, just starting out learning about PHP, mostly by researching, installing and playing with different scripts. I am looking for a host that will provide...
36
by: Pat | last post by:
Hi, I've run into a strange problem, but one that seems like it might be fairly common. I have a single base class, from which several other classes are derived. To keep the example simple,...
14
by: Leah | last post by:
I am a student and are required to build a website that provide services (client-server). I need advice in choosing approach or to be exact the methodology that appropriate for such development....
7
by: robtyketto | last post by:
Greetings, I'm slowly building up code to do the following:- Display TWO selection option boxes (cascading). If the FIRST selection option box changes then reload the jsp using onchange...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
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...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.