Use value of field to select another field

S

Steve Stone

I have inherited a database with multiple fields that identify selections.

Field1 = session 1
Field2 = Session 2
Field3 = session 3

The values for each of these fields can be A,B,C, or D.

I have another field named SELECTFIELD that identifies which of the above
fields to print on the report. The value of this field is

Field1, Field2, field3, ...

How do I use the value of selectfield to print the correct session field?
 
M

Marshall Barton

Steve said:
I have inherited a database with multiple fields that identify selections.

Field1 = session 1
Field2 = Session 2
Field3 = session 3

The values for each of these fields can be A,B,C, or D.

I have another field named SELECTFIELD that identifies which of the above
fields to print on the report. The value of this field is

Field1, Field2, field3, ...

How do I use the value of selectfield to print the correct session field?


This is knd of wierd, but I think it will work for this
problem. Set the text box to display the selected field to
use an expression like:

=Eval("Reports!yourreport." & [SELECTFIELD])
 

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