Solved

Getting the Current Selected Record on an Access PivotChart

Posted on 2008-10-24
6
295 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

911 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

24 Experts available now in Live!

Get 1:1 Help Now