allen: thanks for responding to my query. i am going through your suggestion
to make it work, i will send a reply soon. the tutorials are well written, my
compliments.
george : thanks for suggesting another way of doing it. i seem to be doing
something wrong to make it work, i have provided details of what i was
trying.
- a main table is populated with data using a form. one of the fields to be
populated is a person's name, which is pulled from another table by a look-up
which has names and serial numbers auto-numbered.
- i earlier had a listbox in the form, this allowed me to enter one name.
- i now created a combo-box in the form using the wizard. what happens is
that i select a name from the drop-down, it gets populated in the combobox.
when i select another name, the previous name in the combo-box gets
over-written.
what am i doing in-correctly here? i want to be able to enter multiple names
into the field. i guess i am missing something here...
thanks for your input.
> A combo box control (aka "drop down") only allows the selection of a single
> item. A list box allows multiple selections.
[quoted text clipped - 27 lines]
> > thanks,
> > vc-programmer
vc-programmer - 21 Mar 2008 21:46 GMT
george, i feel like an idiot for not reading your post carefully.
i have been using list-boxes, but i have not been able to select multiple
items in a form to populate a filed using that. i tried using combo-boxes,
but that dosent work either ( like you mentioned in your post )
for access 2003, is there a way to select multiple items in a list box?
> allen: thanks for responding to my query. i am going through your suggestion
> to make it work, i will send a reply soon. the tutorials are well written, my
[quoted text clipped - 48 lines]
> > > thanks,
> > > vc-programmer
George Nicholson - 21 Mar 2008 22:03 GMT
> - i earlier had a listbox in the form, this allowed me to enter one name.
Listboxes have a MultiSelect property. If set to Simple or Extended multiple
selections are allowed, but the default is None.
> when i select another name, the previous name in the combo-box gets
> over-written.
And this is bad because??
The only time I can imagine you would NOT want a combobox value to NOT
overwrite existing data is if you were trying to use one combobox for both
data entry and record navigation (which is a lousy idea: use 2), but you
haven't even hinted that's what you are trying to do, so I'm confused.
Sorry if I'm being dense. If you really do want to make multiple
selections, you need a listbox.
--
HTH,
George
> allen: thanks for responding to my query. i am going through your
> suggestion
[quoted text clipped - 59 lines]
>> > thanks,
>> > vc-programmer
vc-programmer - 22 Mar 2008 01:26 GMT
> And this is bad because??
what i want to do it use a dropdown list of names to select multiple names,
and then populate this to a field in a database.
> > - i earlier had a listbox in the form, this allowed me to enter one name.
> Listboxes have a MultiSelect property. If set to Simple or Extended multiple
> selections are allowed, but the default is None.
i set the multiselect properties to extended. when i select multiple items,
and hit enter - the field i linked it to does not get populated . do i need
to set something else too?
> > - i earlier had a listbox in the form, this allowed me to enter one name.
> Listboxes have a MultiSelect property. If set to Simple or Extended multiple
[quoted text clipped - 79 lines]
> >> > thanks,
> >> > vc-programmer
Rick Brandt - 22 Mar 2008 01:38 GMT
>> And this is bad because??
> what i want to do it use a dropdown list of names to select multiple
[quoted text clipped - 7 lines]
> items, and hit enter - the field i linked it to does not get
> populated . do i need to set something else too?
Access does not make what you want to do simple because it is a bad idea to
do in the first place. A field should hold ONE piece of data. For multiple
pieces of similar data you create a new table with a relationship to the
first (one to many).
If you insist on ignoring this basic premise of database design then you
will have to do some work to make it happen. That means using code to grab
the values from your multi-select ListBox and doing something with them to
get them inserted into your field. Then you have even more difficult work
(with more code) to make such a field editable with your form.

Signature
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
vc-programmer - 24 Mar 2008 17:16 GMT
everyone on this thread : thank you for responding and providing guidance to
proceed in the correct direction. and not only that, it was amazing to see
super-fast responses as well.
i need to start with the basics of relational db, and thats where i will go .
thanks,
vc-programmer