Solved

Pivot Table Form with Button to Drill Down to the Detail

Posted on 2010-09-19
8
722 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

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…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server functions 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 Ac…
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 …

765 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