what would be the best way to store the elected data if you knew that the
user would want it flattened eventually? the question is taken for a for
that uses check boxes. the question is race and the user may pick more
than one.
Do you mean a flat table structure?
The recommended way to do what you want would be to use a subform and a
related table.
You probably could use the multiselect listbox and a one-table solution if
you really wanted to.
One way would be to have an invisible textbox on the form in addition to the
multiselect listbox. Whenever you change the listboxselection, you alter the
content of the textbox via code. The content of the textbox could be
";1;2;3;4;5;" with the numbers being index-numbers from the listbox.
All this would require code at the listbox' afterupdate event to syncronize
the content of the textbox with the selection and also som work in the
form's OnCurrent event to show the right selection.
Later on when you query the table you need to use ...[race] LIKE *" &
yourparam & "*.... to find records where for example race no. 3 is selected.
The approach fine but takes some time to set up. Could be an idea if you
need it to be flat.
Is this close to what you had in mind?
Jesper Fjølner, Denmark