Hi All,
I have created a chart using the form PivotChart view. I have done this initially using VBA, but i have also tried just using a query and puting two text boxes in the form.
The data is a summary of some other data in the database. (Number of faults, between 2 dates, for any selected production line, and product on any particular shift)
What I would like to do is click on one of the bars of the chart and run some VBA (For instance. Click on the highest bar (needle blocked, say) that would take me to a breakdown of occurances of needle blocked that occured in the original query. ( For instance, so I could see if a particular shift had that problem)
If I click on the chart I get it highlighted or on hover i get the value of the bar + the description
I have tried to name the chart in VBA
But i cant get an event to fire is I put this event on the form
I believe that Access knows which bar the mouse is over, because of the on hover letting me know....
I would like to use this to dynamically display a new graph based on the bar I have just clicked. (along with the original information on the associated form)
BTW - I have got around this by displaying a table next to the graph and the user can click on the table to get to the new information. However, this duplicates the data on the form and does not look good!
If anyone can help I would be very greatful.
Cheers
Tim W
I have created a chart using the form PivotChart view. I have done this initially using VBA, but i have also tried just using a query and puting two text boxes in the form.
The data is a summary of some other data in the database. (Number of faults, between 2 dates, for any selected production line, and product on any particular shift)
What I would like to do is click on one of the bars of the chart and run some VBA (For instance. Click on the highest bar (needle blocked, say) that would take me to a breakdown of occurances of needle blocked that occured in the original query. ( For instance, so I could see if a particular shift had that problem)
If I click on the chart I get it highlighted or on hover i get the value of the bar + the description
I have tried to name the chart in VBA
Code:
myForm.ChartSpace.Charts(0).Name = "Fred"
Code:
Private Sub Fred_MouseDown(button, shift, X, Y)
etc...
I would like to use this to dynamically display a new graph based on the bar I have just clicked. (along with the original information on the associated form)
BTW - I have got around this by displaying a table next to the graph and the user can click on the table to get to the new information. However, this duplicates the data on the form and does not look good!
If anyone can help I would be very greatful.
Cheers
Tim W