Solved

Getting the Current Selected Record on an Access PivotChart

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

776 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