select text from an option group

G

Guest

Hi group,

How can i select in a report, the text from an option group?
I´ve tried the line below, but it didn´t work.
=[Forms]![F Products]![From].Value

Thanks for any help,
Rodolfo Fontes
 
J

Jeff Boyce

Rodolfo

I'm not sure I understand. Usually, option groups exist in forms, not
reports. Are you saying you have an option group in a report? If so,
referring to the Forms!... won't see it!

Have you tried referring to Reports!....?
 
J

Jeff Boyce

Rodolfo

It is the Caption property of the label of the chosen option that you wish,
correct? The option group knows only the value assigned to the option
chosen ... and you can use any value you wish for the options.

One approach might be to create a procedure in the OnFormat event of the
Details section. In this procedure you could use a Select Case statement to
recreate the text string you wished to display. The problem with this
approach is that it requires keeping the text on the form and the text
derived in the report maintained in synchrony.
 

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