Results 1 to 3 of 3
  1. #1
    bwheeler is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    May 2016
    Posts
    2

    Combining output on one row

    I have the following data set:

    Table: Mytable
    Account
    Type
    Amount
    1220 Actual 500
    1220 Budget 1000
    2330 Actual 3000
    2330 Budget 2000









    How do I structure my query to produce the following output:

    Account
    Actual_Amt
    Budget_Amt


    1220 500 1000
    2330 3000 2000






    I believe I will need an inline query but not sure of the correct syntax. I'm very new to Access.

    Thanks,
    Bruce

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,428
    use a crosstab query

    Account will be the row header
    Type will be the column header
    Amount will be the value (and summed)

    Note Type is a reserved word, if that is your real field name, change it to something else (such as AccountType)

  3. #3
    bwheeler is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    May 2016
    Posts
    2
    Ajax,

    Thank you very much! That's exactly what I needed.

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

Similar Threads

  1. Replies: 4
    Last Post: 04-23-2014, 04:35 PM
  2. Replies: 4
    Last Post: 12-30-2013, 05:51 PM
  3. Replies: 14
    Last Post: 07-22-2013, 12:39 PM
  4. Output to pdf
    By TOMMY.MYERS668 in forum Programming
    Replies: 3
    Last Post: 02-25-2013, 11:03 AM
  5. Help combining two quieries to output
    By AccessUser1234 in forum Access
    Replies: 3
    Last Post: 04-01-2010, 01:59 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