Solved

Getting the Current Selected Record on an Access PivotChart

Posted on 2008-10-24
6
292 Views
Last Modified: 2013-11-28
Hello,

I started a small Access 2003 project that handles stoked items. I started playing with a pivot chart (for the first time may I say) and got a pretty good idea of how it works. I want the user to click on a data series on the chart and fill some textboxes with the corresponding data. I can loop through the category axis and get the values there may be but that's not what I need.
I need to catch on the SelectionChange event the current selected data series to then "find a way to" take it as reference to get the other values I need to fill in the boxes.

I've used:
obj.SeriesCollection.PivotAxis.Data.CurrentCell.Aggregates(0).Value, which returns always the same value regardless of the selected data series. (there's only one aggregate on the value axis)

and also:
obj.SeriesCollection.PivotAxis.Data.CurrentCell.ColumnMember.Caption that returns always the same value as well.

I appreciate any suggestion on the matter (plus there are points too ;P)

Thank you very much!!
0
Comment
Question by:mindChaos
  • 3
6 Comments
 
LVL 38

Expert Comment

by:puppydogbuddy
ID: 22804990
This is not the solution, but if you experiment with your code a little bit , it may lead you to the solution.  The link seems to say that the Chart Workspace must be referenced in the Selection List.   It also mentions selecting and clearing the Plot Detail Records checkbox.                       http://office.microsoft.com/en-us/access/HP030882581033.aspx

HTH
0
 
LVL 38

Expert Comment

by:puppydogbuddy
ID: 22805833
0
 

Author Comment

by:mindChaos
ID: 22810409
Thanks for the quick reply puppydogbuddy! Very interesting things on the links you provided; but I'm filtering my pivotchart on a subform and works very smooth. I just need to be able to click on a data series and, at least, get an x co-ordinate indicating where the series is so I can go y-wise and get the values I need (+ the x values as well)
0
 
LVL 38

Accepted Solution

by:
puppydogbuddy earned 500 total points
ID: 22813670
You missed my point.....I was trying to tell you to extend your code to include a reference to the ChartSpace object and see if your code woulld now work.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now