Results 1 to 6 of 6
  1. #1
    TBcontroller is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2017
    Posts
    9

    Question Query Ran off a Pivot Table

    Hello,



    I am no code expert and newer to access, so I am limited in SQL query creation. I am trying to run a query wit a pivot table that I need to have as my base and pull info off of other tables.

    Is it possible to do this? or is there another way to create a table that is LINKED to the pivot table and updates?

    Any suggestions on how to begin?

    Br,
    TB

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Don't really understand the question. Just because a table is in PivotTable view doesn't change the underlying table structure. Joining to a 'pivot table' is just joining to the actual table.

    If you really mean you have a CROSSTAB query, that is different situation. Yes, CROSSTAB query can be used in another query.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    TBcontroller is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2017
    Posts
    9
    I apologize for not being clear. I have a pivot table ran off of 'Query 1' that totals specific Truck builds. I want to make 'Query 2' look up those values from the pivot table.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Same applies to query. PivotTable view does not change the underlying source structure.

    You want to look up totals?

    Have you tried? What happens?

    Have you explored CROSSTAB query to produce the pivot?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    TBcontroller is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2017
    Posts
    9
    Yeah, I have tried to add the pivot table into the relationship section. It has not allowed me. I am presuming since doing a pivot creates it as a form.

    Correct, I have a query that has the builds of trucks and the parts in the build. I created a pivot to sum the costs per those builds of trucks. I am trying to pull those sums from the pivot back into a different query now.

    Crosstab wouldn't work as the structure is different than a pivot.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Well, I've never used pivot table/charts/form but I don't think you can 'pull' calculated results from them because there really is no object containing those results to pull from. For a form in pivot view, what textboxes would you reference?

    Options may be:

    1. I expect a CROSSTAB can be constructed to produce the desired output, just won't have the multi-row headers nor be interactive

    2. VBA procedure with looping structure to write calculated data directly to a 'temp' table

    3. export to Excel and do pivot there then link or import - it's my understanding that creating pivots is removed from Access 2016 and MS expects you do this export
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Treating Query like Pivot Table
    By thexxvi in forum Access
    Replies: 2
    Last Post: 06-26-2015, 12:08 PM
  2. Replies: 0
    Last Post: 09-22-2014, 07:07 AM
  3. Creating a pivot table like query
    By razkowski in forum Queries
    Replies: 2
    Last Post: 07-03-2012, 09:45 AM
  4. Problem with Query and pivot table
    By winterh in forum Access
    Replies: 1
    Last Post: 04-18-2012, 10:03 AM
  5. Pivot Table from Query to Form
    By polpolpol in forum Forms
    Replies: 0
    Last Post: 03-20-2012, 12:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums