Solved

Pivot Table Form with Button to Drill Down to the Detail

Posted on 2010-09-19
8
709 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
  • 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
 

Author Comment

by:Ennistymon
ID: 33712634
For an unknown reason I can't open your file even after copying it to my machine.
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
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 250 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

760 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

19 Experts available now in Live!

Get 1:1 Help Now