Solved

Getting the Current Selected Record on an Access PivotChart

Posted on 2008-10-24
6
301 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 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