Results 1 to 4 of 4
  1. #1
    TKTheKid is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    35

    Summarizing a query to make a new, broader query?

    Hi everyone,



    Please see my attached database.

    queryDifference2COPY compares tables tableKWIData and tableWarehouseData and spits out the differences between their quantities by ARTICLE. It also maintains columns from each table regardless of whether or not there is a corresponding ARTICLE in both tables. For example, ARTICLE 1111111111 is only found in tableWarehouseData, but those records still appear in the query as "Differences" even though there is no ARTICLE to compare to in tableKWIData.

    So, the bottom line is, since I already have this query in place, is there any way to just summarize queryDifference2COPY and create a new, separate query based off of it that does the same thing, but by STYLE instead of ARTICLE? COLOR and SIZE and ARTICLE would not feature in the new query at all actually. It should just compare the quantities from each table summarized by STYLE only.

    I hope this makes sense!

    Thanks for any help!

    Tony
    Attached Files Attached Files

  2. #2
    TKTheKid is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    35
    Anyone?

    Thank you!

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Why copy of query?

    Is this what you want:

    SELECT Sum(queryDifference2.[KWI QUANTITY]) AS [SumOfKWI QUANTITY], Sum(queryDifference2.[WHSE QUANTITY]) AS [SumOfWHSE QUANTITY], queryDifference2.STYLE
    FROM queryDifference2
    GROUP BY queryDifference2.STYLE;
    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.

  4. #4
    TKTheKid is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    35
    Ah, yes. Thanks again June!

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

Similar Threads

  1. Replies: 1
    Last Post: 05-24-2012, 03:29 AM
  2. Make Query Look Like This (pic)
    By taimysho0 in forum Programming
    Replies: 2
    Last Post: 02-24-2012, 12:45 PM
  3. Summarizing records in a subreport
    By goodguy in forum Reports
    Replies: 5
    Last Post: 09-24-2011, 10:32 AM
  4. Replies: 1
    Last Post: 07-30-2010, 10:28 AM
  5. Trouble Summarizing in Group Footer
    By Millerguitarworks in forum Reports
    Replies: 2
    Last Post: 12-07-2009, 06:06 AM

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