Re: list box

From: Wayne Morgan (comprev_gothroughthenewsgroup_at_hotmail.com)
Date: 04/01/04


Date: Thu, 1 Apr 2004 04:18:01 -0600

The value of the listbox is stored in the Control Source's field. The value
of the listbox is from the Bound Column of the selected row. This is for a
single select listbox. For a multiselect listbox you have to loop through
the ItemsSelected property to get the values for each selected row, these is
no "value" for the listbox itself when using a multiselect listbox. Also,
you shouldn't store multiple values in a field. This makes the data very
difficult to sort through and retrieve later. Instead, you may need multiple
fields, perhaps several Yes/No fields, one for each possible selection.
Multiselect listboxes usually aren't used for "data entry", they are used
for "criteria selection" such as "I want to see the players on the selected
football teams."

-- 
Wayne Morgan
Microsoft Access MVP
"nerd" <anonymous@discussions.microsoft.com> wrote in message
news:16c9b01c417cc$de994390$a401280a@phx.gbl...
> i have a list box that can select multiple values, but it
> doesn't store any of them in the desired field in the
> table. how do i solve this or get around it?


Relevant Pages

  • Re: Last Selection from MultiSelect Listbox
    ... What you can do is track the listbox selection in an array by modifying an array every time the listbox is changed. ... Dim idx As Integer, i As Integer ...
    (microsoft.public.excel.programming)
  • Re: Select range & copy
    ... I changed the range name of the ListBox stuff to mRefList ... "tvac" wrote: ... > Private Sub ListBox1_Click ... >> The first 2 columns have common data regardless of the selection. ...
    (microsoft.public.excel.programming)
  • Re: List of values
    ... I have to assume that the listbox is set to ... single-selection listbox. ... Private Sub ButtonOK_Click ... have shown is only the code to load the data into the listbox and display ...
    (microsoft.public.word.vba.general)
  • Re: Creating a Drop down list where can pick more than one choice
    ... do both tasks (make the listbox visible, and write the selected items into ... <MS ACCESS MVP> ... "Ken Snell MVP" wrote: ... Or do you want each selection to appear in the ...
    (microsoft.public.access.forms)
  • Re: List boxes in Microfocus Dialog System/Net Express?
    ... listbox is question is called a "Selection Box" in Dialog System and ... Dialog System's listbox rows start at 1. ... It wont necessarily be apparent from the demo project titles ... None of the examples I've found show how to accomplish what I'm trying ...
    (comp.lang.cobol)