dbTalk Databases Forums  

Urgent! Use multiple choice with access

comp.databases.ms-access comp.databases.ms-access


Discuss Urgent! Use multiple choice with access in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dj87
 
Posts: n/a

Default Urgent! Use multiple choice with access - 01-04-2005 , 04:41 AM







Hi, I do not know whether was already posted a request about this problem,
but my
problem is this.

I'd like to insert in a text field of a table of Ms Access some values from
a
list with the possibility of also choosing more than one.

From the combined square which I was using before passed to the square of
recapitulate activating the function of multiple selection with the problem
that if
all select one OK, select more than one in the field does not come
memorized nothing.

Did I forget any passage?

I must set up some other parameter. It is sufficient if
were selected more voices, these are stored in the associated field one
behind the other you separate from a comma or a point and comma.

Thanks, wait for reply.

Emanuele


Reply With Quote
  #2  
Old   
jv
 
Posts: n/a

Default Re: Urgent! Use multiple choice with access - 01-04-2005 , 09:43 AM






I'm sorry, but I cannot understand what you asking for the life of me.
Can you please clarify where you are using a MultiSelect ListBox? What
is a combined square? Are you trying to store the values of a
MultiSelect ListBoxinto a single field? Or are you trying to store the
values into multiple fields.

Thanks.


Reply With Quote
  #3  
Old   
Steve Jorgensen
 
Posts: n/a

Default Re: Urgent! Use multiple choice with access - 01-04-2005 , 09:47 AM



If I understand your question correctly, the usual approach in Access is to
use a junction table to represent the choices associated with a particular
entity, and use a continuous subform to select the choices.

A junction table is a table with a 2-field key or unique index that includes
the key of the main entity to which options are to be associated, and the key
of the option to be associated.

For example:

tblEntity
* EntityId
EntityName

tblOption
* OptionId
OptionName

tblEntityOption
* EntityId
* OptionId

Your main form would be bound to tblEntity, and your subfrom would be bound to
tblEntityOption using EntityId as the parent/child link. The subform would
have a combo box bound to OptionId with the Row Source for choices being
tblOption. The Row Source would return both fields from tblOption, bound to
the OptionId in the first column, and hide that column by setting Column
Widths to zero (means first column with 0, remaining columns automatic).

On Tue, 04 Jan 2005 10:41:01 GMT, "Dj87" <info128 (AT) interfree (DOT) it> wrote:

Quote:
Hi, I do not know whether was already posted a request about this problem,
but my
problem is this.

I'd like to insert in a text field of a table of Ms Access some values from
a
list with the possibility of also choosing more than one.

From the combined square which I was using before passed to the square of
recapitulate activating the function of multiple selection with the problem
that if
all select one OK, select more than one in the field does not come
memorized nothing.

Did I forget any passage?

I must set up some other parameter. It is sufficient if
were selected more voices, these are stored in the associated field one
behind the other you separate from a comma or a point and comma.

Thanks, wait for reply.

Emanuele


Reply With Quote
  #4  
Old   
Dj87
 
Posts: n/a

Default Re: Urgent! Use multiple choice with access - 01-04-2005 , 10:08 AM



I'm very sorry for my english, I'm Italian.

The problem is this.

I have a question with six possible answers. These answers can be select
without limitations (any, 1, 2, all) but I want that all the answers
selected will be stored into a cell of then main table.

I've thought to use a "casella di riepilogo" (in italian) could be "list
box"? A box with many items to select. But if I select more than 1 item data
is not stored.

How can I do it? I'd like not to use six control box (Yes/No). Are there
others methods?

Thanks!

--
Dj87


Reply With Quote
  #5  
Old   
jv
 
Posts: n/a

Default Re: Urgent! Use multiple choice with access - 01-04-2005 , 11:21 AM



Are you trying to use an option group with six check boxes to select
multiple answers? The problem is that option groups only allow you to
select a single answer.

You can try using an unbound ListBox with the MultiSelect property set
to Simple which will allow users to select mulitple answers. Then you
will have to iterate through the list indexes to find out which answers
were selected and then store the value into the table.

Or you can use six unbound check boxes and then use code to concatenate
the answers and then store the value.


Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.