M
Mala
Hi!
This seems simple enough, but it's not working...
I am trying to add a check box control on my Access 2K
form and store the values in a field in my table.
First, when I add the check box controls (4 of them) in an
option group bound to a field, I can only pick one option.
I'd like to select any or all of them. The single value
stores in the DB fine, but again, it's only one value and
doesn't completely suit my needs.
(on the form)
X Value 1
_ Value 2
X Value 3
_ Value 4
(options 1, 3 selected)
Second, when I add the check box controls without the
option group, it becomes an all or nothing situation: all
are selected or none of them. Besides not being what I
want, it stores -1 in the DB.
I thought check boxes could toggle on and off by default
to select any of the options.
Third, when I use a list box and set the MultiSelect
option to Extended, I can *select* the items I want, but
*nothing* stores in the DB, not even -1.
What I'm hoping I can store is a list of integers that I
can pass through a lookup table to get the text.
(e.g. in the table)
1 Tom Smith 1,2,4
2 Mary Smith 2,4
3 Fred Smith 1
What am I doing wrong? Which control should I be using?
What property am I not setting/setting incorrectly to do
the multiple select with the checkboxes? What should the
DB type be for the field I'm trying to bind? I've
alternated between text (to store the text values of the
list box) and number (to store the option number of the
check boxes).
I hope someone can help me soon. Your help is greatly
appreciated. I've looked on the web and in books and am
stumped!
Thank you,
Mala
This seems simple enough, but it's not working...
I am trying to add a check box control on my Access 2K
form and store the values in a field in my table.
First, when I add the check box controls (4 of them) in an
option group bound to a field, I can only pick one option.
I'd like to select any or all of them. The single value
stores in the DB fine, but again, it's only one value and
doesn't completely suit my needs.
(on the form)
X Value 1
_ Value 2
X Value 3
_ Value 4
(options 1, 3 selected)
Second, when I add the check box controls without the
option group, it becomes an all or nothing situation: all
are selected or none of them. Besides not being what I
want, it stores -1 in the DB.
I thought check boxes could toggle on and off by default
to select any of the options.
Third, when I use a list box and set the MultiSelect
option to Extended, I can *select* the items I want, but
*nothing* stores in the DB, not even -1.
What I'm hoping I can store is a list of integers that I
can pass through a lookup table to get the text.
(e.g. in the table)
1 Tom Smith 1,2,4
2 Mary Smith 2,4
3 Fred Smith 1
What am I doing wrong? Which control should I be using?
What property am I not setting/setting incorrectly to do
the multiple select with the checkboxes? What should the
DB type be for the field I'm trying to bind? I've
alternated between text (to store the text values of the
list box) and number (to store the option number of the
check boxes).
I hope someone can help me soon. Your help is greatly
appreciated. I've looked on the web and in books and am
stumped!
Thank you,
Mala