A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How can I use a multiple selection list box to store multiple ans.



 
 
Thread Tools Display Modes
  #1  
Old January 22nd, 2005, 11:49 PM
Maree_in_Australia
external usenet poster
 
Posts: n/a
Default How can I use a multiple selection list box to store multiple ans.

I am trying to set a field that will accept multiple selections from a list
box. Please Help!!!!

Urgent!!!!
  #2  
Old January 22nd, 2005, 11:54 PM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

This is not the normal method of storing multiple values. The accepted
method is to use a subform that is bound to a related table like the Orders
and OrderDetails in the Northwind database.

Can you get around not using a list box?

--
Duane Hookom
MS Access MVP


"Maree_in_Australia" wrote in
message ...
I am trying to set a field that will accept multiple selections from a list
box. Please Help!!!!

Urgent!!!!



  #3  
Old January 23rd, 2005, 12:38 AM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Sat, 22 Jan 2005 15:49:03 -0800, Maree_in_Australia
wrote:

I am trying to set a field that will accept multiple selections from a list
box. Please Help!!!!

Urgent!!!!


In a relational database, one does NOT store multiple values in a
field. Instead, you should use two tables in a one-to-many
relationship; and store the multiple values in the "many" side table.
A Subform is the simplest way to do this. If you really need to do it
using a listbox, I've got some sample code which will move selections
from a Listbox into a many-side related table.

John W. Vinson[MVP]
  #4  
Old January 23rd, 2005, 07:47 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default

Hi Marie.

As Duane and John have explained, using a list box to stuff lots of
different items into one field is a really bad design - even in Australia.
:-)

One of the most basic rules of relational data is that each field must be
atomic, i.e. it must contain only one thing. To read further about this,
search for "normalization".

Micorosoft's basic introduction is he
http://support.microsoft.com/default...b;en-us;209534

--
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.

"Maree_in_Australia" wrote in
message
...
I am trying to set a field that will accept multiple selections from a list
box. Please Help!!!!

Urgent!!!!



  #5  
Old March 3rd, 2005, 03:43 PM
Shel
external usenet poster
 
Posts: n/a
Default

HI I found this post in my search and I am interested in the sample code
which will move selections from a Listbox into a many-side related table. I
DO have two tables in a one-to-many relationship; and store the multiple
values in the "many" side table.

I realize asking for this is bad form but I want to compare my options.

Thanks bunches!!
Shel

"John Vinson" wrote:

On Sat, 22 Jan 2005 15:49:03 -0800, Maree_in_Australia
wrote:

I am trying to set a field that will accept multiple selections from a list
box. Please Help!!!!

Urgent!!!!


In a relational database, one does NOT store multiple values in a
field. Instead, you should use two tables in a one-to-many
relationship; and store the multiple values in the "many" side table.
A Subform is the simplest way to do this. If you really need to do it
using a listbox, I've got some sample code which will move selections
from a Listbox into a many-side related table.

John W. Vinson[MVP]

  #6  
Old March 3rd, 2005, 09:33 PM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

You might want to search Roger Carlson's small sample databases at
http://www.rogersaccesslibrary.com/TableOfContents3.asp. Search for this
file or possibly others ListboxSubform.mdb ( intermediate )

--
Duane Hookom
MS Access MVP


"Shel" wrote in message
...
HI I found this post in my search and I am interested in the sample code
which will move selections from a Listbox into a many-side related table.
I
DO have two tables in a one-to-many relationship; and store the multiple
values in the "many" side table.

I realize asking for this is bad form but I want to compare my options.

Thanks bunches!!
Shel

"John Vinson" wrote:

On Sat, 22 Jan 2005 15:49:03 -0800, Maree_in_Australia
wrote:

I am trying to set a field that will accept multiple selections from a
list
box. Please Help!!!!

Urgent!!!!


In a relational database, one does NOT store multiple values in a
field. Instead, you should use two tables in a one-to-many
relationship; and store the multiple values in the "many" side table.
A Subform is the simplest way to do this. If you really need to do it
using a listbox, I've got some sample code which will move selections
from a Listbox into a many-side related table.

John W. Vinson[MVP]



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How does Access save multiple select items from a List back into . Brad Using Forms 1 December 17th, 2004 04:13 PM
How do I store multiple fields from one table to another Peter General Discussion 2 November 30th, 2004 10:41 PM
list box doesn't store the selected value until closing the form Lin Using Forms 2 November 3rd, 2004 05:34 PM
Multiple List function George Worksheet Functions 8 February 15th, 2004 10:13 AM
multiple sheet selection Vasant Nanavati Worksheet Functions 0 October 18th, 2003 04:58 AM


All times are GMT +1. The time now is 02:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.