=?Utf-8?B?S2VuIEdlaGxl?= <(E-Mail Removed)>
wrote in
news:E2396CA0-1D3C-4DDD-8F75-(E-Mail Removed):
> I have a combo box that has three choices: not subscribed,
> subscibed & unsubscibed. I want to have, when this data is
> changed, the update of a yes/no field that is hiden based on
> the combo box choice: subscibed would be updated to Yes and
> the other two to NO. I am doing this approach so that the
> status is displayed on a sub form as a Yes/No without the
> problems of using Yes/No for three possible entires!
>
> I am guessing that whatever code I need would go in the upon
> change property of the combo box but since I not messing in
> the heavy access stuff now days (I'm a commercial
> photographer) I need help.
>
> Ken
What you are trying to do in the subform is imitate an option
group. Imitation is the sincerest form of flattery, so why not
use the real thing?
And yes, option groups can use checkboxes, although radio
buttons would follow the MS design standards better.
What you'd do to use this, setup an index column for your
combobox, give them the numbers 1,"Not
subscribed",2,"subscribed",3, "unsubscribed".
Bind that numeric value to a field in your table. set the
default to 1.
In the subform, use the wizard to create the option group.
Bind it to the numeric field created above.
All done, no code.
--
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from
http://www.teranews.com