batwings
Registered User.
- Local time
- Today, 22:03
- Joined
- Nov 4, 2007
- Messages
- 40
Hi there,
I need some help with referencing controls,
I have a Report with a textbox that I am using to show which Option has been selected from an Option Group on a form.
The only way I have been able to do what I need is using a hidden text box with the following code:
And then with multiple IIf statements like below in a visible text box,
But there must be a more direct way?
=Forms!MyForm!MyOptionGroup!MyOptionButton!MyCaption?
How do I reference each one of the 5 Captions or Names of my Option Button Labels in the Option Group?
I need some help with referencing controls,
I have a Report with a textbox that I am using to show which Option has been selected from an Option Group on a form.
The only way I have been able to do what I need is using a hidden text box with the following code:
Code:
=Forms!MyForm!MyOptionGroup
Code:
=IIf([Text29]=1,"Oranges",IIf([Text29]=2,"Apples",IIf([Text29]=3,"Pears",IIf([Text29]=4,"Lemons",IIf([Text29]=5,"Limes")))))
But there must be a more direct way?
=Forms!MyForm!MyOptionGroup!MyOptionButton!MyCaption?
How do I reference each one of the 5 Captions or Names of my Option Button Labels in the Option Group?