Hi Allen. Once again, thanks for your guidance.
> I really can't imagine that's worth the trouble when a simple lookup
table
You are right, its a lot of work & more moving parts to go wrong. We will
proceed with the lookup table option.
Cheers.
McGeeky
"Allen Browne" <AllenBrowne@[EMAIL PROTECTED]
> wrote in message
news:%23La9e4NVJHA.4928@[EMAIL PROTECTED]
> You could have an unbound option group.
>
> In its AfterUpdate event, populate the (hidden) field with the
appropriate
> text value.
>
> Also use the form's Current event to set the value of the option group
> (each time you change record.)
>
> And use the form's Undo event to reset the option group to the OldValue
of
> the hidden field.
>
> I really can't imagine that's worth the trouble when a simple lookup
table
> is actually the right (normalized) solution.
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "McGeeky" <anon@[EMAIL PROTECTED]
> wrote in message
> news:earEBAJVJHA.3908@[EMAIL PROTECTED]
>> Hi Allen. That's a good idea thanks; I may switch to that approach or
use
>> your original combo box idea as they both require no custom code.
>>
>> However! Is it possible to write completely bespoke VB code such that
an
>> option group can be mapped to database column lookup values? E.g. I
trap
>> an "update" event on the form where I can inspecte the option group
>> values and manually write the High/Low value to the database?
>>
>> Thanks.
>>
>> "Allen Browne" <AllenBrowne@[EMAIL PROTECTED]
> wrote in message
>> news:unJvBoIVJHA.1188@[EMAIL PROTECTED]
>>> Perhaps you could create a little table with 2 fields, like this:
>>> PriorityID Number
>>> Priority Text
>>> Then enter 2 records:
>>> 1 Low
>>> 2 High
>>>
>>> Now create a query that uses your original one and this little one,
>>> joined on the PriorityID field. You can output the text field for your
>>> re****t or whatever.
>>>
>>> "McGeeky" <anon@[EMAIL PROTECTED]
> wrote in message
>>> news:urC5FcIVJHA.3796@[EMAIL PROTECTED]
>>>> Ah, that's a pain. Is it possible if some VB code was used to sit
>>>> between the database column and the option group?
>>>>
>>>> Thanks Allen!
>>>>
>>>>
>>>> "Allen Browne" <AllenBrowne@[EMAIL PROTECTED]
> wrote in message
>>>> news:OeNcF6HVJHA.4680@[EMAIL PROTECTED]
>>>>> You can't. An option group can store only numbers.
>>>>>
>>>>> Use a combo box instead.
>>>>>
>>>>> "McGeeky" <anon@[EMAIL PROTECTED]
> wrote in message
>>>>> news:%23ceG9mHVJHA.4300@[EMAIL PROTECTED]
>>>>>> Hi. I have a basic question here but I am stuck on it.
>>>>>>
>>>>>> I have a lookup column with two values: High and Low. I have added
a
>>>>>> option button group and two option buttons to my form. The group is
>>>>>> bound to the database column. However, when I select one of the
>>>>>> option buttons either a
>>>>>> 1 or a 2 is set in the database column. How do I tell the option
>>>>>> buttons to set High or Low in the database column instead?
>


|