Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Option Button Values as Text in a Report 1

Status
Not open for further replies.

phishfn

Technical User
Oct 3, 2003
10
US
I have a form with a group of option buttons, one for "Hardware" and another for "Software". Of course the values that display for these buttons in a report are numeric, but I need them to show up as text on the report. I.e., The user selects the "Hardware" option, clicks a button to show a report, but the option selected shows up as 1 instead of "Hardware". I know this should be easy but I just can't get it to work. Any help would be dearly appreciated. Thanks.
 
You can bind a control to:
=Choose(Forms!frmYourForm!optHardSoft,"1-Hardware","2-Software")
This makes assumptions based on your form and control names as well as the values of the option group.

Duane
MS Access MVP
 
I should have also mentioned, if you have a field in your report that stores either 1 or 2, you can use:

=Choose([YourField],"Hardware","Software")

Duane
MS Access MVP
 
Excellent! Thank you so much for your help. It works great!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top