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

Needing to change the chart heading 2

Status
Not open for further replies.

lakefun

Programmer
Jan 11, 2001
16
US
One of my reports contains a chart. And based on the data from the source query, the chart heading will need to change each and every time it runs. Can I modify this field with my VB code? Any help/ideas would be appreciated!
 
I think Maybe
If you create a Text box that gets its information from a "function" it will work

open Modules TAB

Add this
Function GetInfo()
GetInfo = something ' this needs to be a Textbox on a form or something

End Function

DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
The chart generates its own chart heading (it was done with the wizard) so I don't need to set up another one - I just need to modify the one on the chart. Is this possible?
 
Delete the heading that the chart puts in their automatically. Place your chart in the report, now place an unbound textbox that goes from one side of the chart to the other where the title of the chart would normally be. Make the text in the textbox centered and manipulate the textbox in code to show your title. The charts are very difficult to manipulate through code and fairly undocumented so this would be a much easier battle to win.

HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top