Results 1 to 2 of 2
  1. #1
    AccessTheBase is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    2

    Use different criteria for different columns?

    I get this query result:

    Product1 | Description | Sum of Sales | Japan
    Product1 | Description | Sum of Sales | USA
    Product1 | Description | Sum of Sales | Germany
    Product2 | Description | Sum of Sales | Japan
    Product2 | Description | Sum of Sales | USA
    Product2 | Description | Sum of Sales | Germany



    I want to get this query result

    Product1 | Description | Sum of Sales in Japan | Japan | Sum of Sales in USA | USA | Sum of Sales in Germany | Germany
    Product2 | Description | Sum of Sales in Japan | Japan | Sum of Sales in USA | USA | Sum of Sales in Germany | Germany

    How can I achieve this?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    First I'd play with the crosstab query wizard. It looks like what you want to do. Otherwise, you're looking at a function along these lines:

    Return a concatenated list of sub-record values
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 1
    Last Post: 06-12-2011, 07:08 AM
  2. Comparing 2 columns against 2 other columns
    By Amadeus in forum Access
    Replies: 4
    Last Post: 06-09-2011, 02:48 PM
  3. Search By Criteria - Flexible Criteria Fields
    By lilanngel in forum Access
    Replies: 0
    Last Post: 03-16-2011, 06:25 PM
  4. How do I get more columns?
    By cowboy in forum Queries
    Replies: 2
    Last Post: 05-03-2010, 04:44 PM
  5. Add Columns to query
    By 4petessake in forum Access
    Replies: 0
    Last Post: 06-15-2007, 01:38 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