Displaying a label in reports from toggle buttons

Princessboko

Board Regular
Joined
Nov 3, 2002
Messages
73
I hope I can explain this properly. I have a very simple data entry form that has an Option Group with toggle buttons the user can select from.

Now when I create a report the report shows the value of the option box (1, 2, 3, etc.) Is there any way I can get the toggle button label to show on the report instead? I'm not sure how to do this.

Suggestions?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Figured it out (it is amazing how another cup of espresso can help you think)

Made another table with all the labels and made the values the autonumber. Made a relationship to the field from the new table. Made a query that just displays the description and put the query description in the report and it works.

:)
 
Upvote 0
Do you mean you'd like to display the text that is next to the selected button on your form?

If so, you could use some nested IIF statement sin your control source. I'm assuming that you don't plan on changing the label text on the form, as you will be hard-coding that text into the IIF statement. The control source for your text box on the report will look something like this:

=iif([button_value] = 0, "Apple", iif([button_value] = 1, "Banana", iif([button_value] = 2, "Orange", "Other")))

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,221,607
Messages
6,160,792
Members
451,671
Latest member
kkeller10

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top