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

Changing Report Control Values with Code

Status
Not open for further replies.

freewilly

Programmer
Feb 19, 2001
43
0
0
AU
Hi team

I want to change the title of my report based on filtering the user chose.

I can change the value of the control with:
Code:
[Reports]![ReportName].lblTitle.Caption = "New Value"
When I put:
Code:
?[Reports]![ReportName].lblTitle.Caption
into the immediates window I get the new value, but the actual Report still shows the value it had in design view.

How can I get the report to reflect the changes I have made?

Thanks

FW
 
In the report's On Open event, you can check the form that the user used to set the criteria and set the caption at that point.

ProDev, MS Access Applications
Visit me at ==> Contact me at ==>lonniejohnson@prodev.us

May God bless you beyond your imagination!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top