Easy option button question

G

Guest

I'm making a simple form to populate a table. I'd like the grouped option
buttons to write a text value to the table field.

For example, I've got a color choice of red, white, or blue. I've got a set
of grouped option buttons that allow the user to select only one. It
populates the table with 1,2, or 3. How do I get it to populate the field
with "red", "white" or "blue"?
 
R

Rick Brandt

Lumpy said:
I'm making a simple form to populate a table. I'd like the grouped
option buttons to write a text value to the table field.

For example, I've got a color choice of red, white, or blue. I've
got a set of grouped option buttons that allow the user to select
only one. It populates the table with 1,2, or 3. How do I get it to
populate the field with "red", "white" or "blue"?

It would be better to NOT. You can easily use an expression...

=Choose([FieldName], "red", "white", "blue")

....to display the text on reports or in queries. If you insist on saving the
actual text strings then an Option Group is not the best choice of controls.
Switch to a ListBox or ComboBox.
 
D

David F Cox

or three buttons in the appropriate colours?

Rick Brandt said:
Lumpy said:
I'm making a simple form to populate a table. I'd like the grouped
option buttons to write a text value to the table field.

For example, I've got a color choice of red, white, or blue. I've
got a set of grouped option buttons that allow the user to select
only one. It populates the table with 1,2, or 3. How do I get it to
populate the field with "red", "white" or "blue"?

It would be better to NOT. You can easily use an expression...

=Choose([FieldName], "red", "white", "blue")

...to display the text on reports or in queries. If you insist on saving
the actual text strings then an Option Group is not the best choice of
controls. Switch to a ListBox or ComboBox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top