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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Data into a Report's Header

Status
Not open for further replies.

regava

Programmer
May 24, 2001
152
US
Access 2000 - I have a form which has four options to print a report based on the option selected. My problems is that I have not been able to carry the option selected to the Header of the Report. One of the things that I tried was to set up a Public variable and stored the option there, but when I get to the report the variable is not available.
Any ideas? Help is appreciated.
 
Could you provide more details regarding your option group and your attempts?

You should be able to bind a text box to something like:
Code:
=Choose(Forms!frmName!OptGrpName,"Caption1","Caption2","Caption3","Caption4")

Duane
Hook'D on Access
MS Access MVP
 
dhookom thank you for your reply. That is exactly what I did and solved my problem. However, I had to enclosed the form name in brackets (ie. [ ]![ ]![ ]). Have a wonderful day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top