?
Solved

Pivot Table Form with Button to Drill Down to the Detail

Posted on 2010-09-19
8
Medium Priority
?
740 Views
Last Modified: 2013-11-28
I have been asked to develop a form that will be a summary of the number of moves truck drivers make during their shift. The underlying table will include the driver's id, each unit the driver moved, whether loaded or empty, and so on. Making a pivot table for this is easy, but the difficult part is that they want a button at the end of each row of the pivot table that will enable the user to drill down to the record level to see the detail of these moves. My problem is that I can't add a button to the pivot form that when pushed will pull up the transactions for that driver. Any ideas of how I can do this?
0
Comment
Question by:Ennistymon
[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
  • 5
  • 3
8 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 33712404
You cannot do this directly, (If I am reading your request correctly), you have to use the "Collapse/expand" button/icons (the little "+" and "-" icons)

Also remember that the whole purpose of a Pivot table is to "summarize" the data. (Not displaying any real "detail" levels).

There may be some way to automate this though...

If you need to drill down from the "Move" to the "Move" details then:
1. The "Move" info and the "MoveDetails" info need to be in separate, related tables.
2. Then you can create a simple Main/subform.
This will allow you to select a "Move" in the main form and see the corresponding "MoveDetails" in the subform.

;-)

JeffCoachman
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 33712474
Here is a very basic sample.

Perhaps you can study it carefully and adapt it to work in your database.

;-)

JeffCoachman
Access-EEQ26484038MovesAndMoveDe.mdb
0
 

Author Comment

by:Ennistymon
ID: 33712556
Using your recommendation and modifying it a bit, I created a form from the pivot table query and also created a parameter query of the records details and made a form from that. Then I made the Pivot Form the main form and the Parameter form the sub form. The form shows a "+" sign to the left of the first column. When I click on it, the "+" runs the parameter query. The "+" changes to a "-" and drops down the detail results from the parameter query. Interestingly enough, when I go to print the detail, I only get the pivot summary results. Any idea how I can print the detail as well?
0
10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

 

Author Comment

by:Ennistymon
ID: 33712634
For an unknown reason I can't open your file even after copying it to my machine.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 33712813
I just downloaded it to myself and it worked fine.

Try downloading it again.
Also make sure that you have permissions to Add/copy, ...etc files to your destination Folder/Drive, ...etc.

Also try downloading it from another machine, or from home.

Jeff
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 1000 total points
ID: 33712846
<Interestingly enough, when I go to print the detail, I only get the pivot summary results. Any idea how I can print the detail as well?>
Again, Pivot tables are not meant to display/print "Detail" data in the manner you are requesting.

Try my form sample and see if that is an adequate workaround.

Also leave this Q open for a few more days and see in an Expert here can create something custom for you.
(Or in case I am not understanding your request...)

JeffCoachman
0
 

Author Closing Comment

by:Ennistymon
ID: 33784870
Jeff,
Thanks again for your help. Your example prompted me to think in a different way. I came up with a solution that works! Thanks again.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 33786121
;-)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Suggested Courses

771 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