Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2014
    Posts
    1

    Cross Tab Query with multiple Values

    Hi everyone, thank you for taking the time to read this.

    I am fairly new to Access but now have good understanding of a standard cross tab query. However I am trying to attempt to produce a cross tab query with multiple values.

    Ultimately I am trying to get an output which has sales, margin and volume by month, by customer split down into 4 main categories (as seen in the attachment)

    I have created 3 separate cross tab queries from a main 'data dump' query which will produce Sales, Margin and Volume individual but ideally I would like one output query which exports so I can export it straight into my Excel file.

    To recap (looking at the attachment) I can produce columns A-H easily using a cross tab, and then duplicate for Sales and volume but would prefer one single output file.

    Is this possible? And if so how?

    Thanks again.
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    I have a report table...tRptXtab to collect all the crosstab data...

    make a macro to:
    empty the table
    I would append the 1st crosstab MARGINS to it (in your attached layout)
    then append Sales (into its columns)
    then Volume.
    your final output to excel would be a summation query on the rpt table. Transferspreadsheet...

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

Similar Threads

  1. Replies: 1
    Last Post: 03-27-2014, 07:15 AM
  2. Replies: 5
    Last Post: 03-17-2014, 04:02 PM
  3. Multiple joins, avoiding cross joined result
    By richjhart in forum Queries
    Replies: 2
    Last Post: 09-17-2010, 09:32 AM
  4. query field with multiple values
    By mknowles in forum Queries
    Replies: 1
    Last Post: 11-24-2009, 11:31 AM
  5. Multiple cross-references from one record
    By bpkcjgorr in forum Database Design
    Replies: 0
    Last Post: 01-03-2008, 02:33 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