Results 1 to 2 of 2
  1. #1
    weslake77 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    3

    New to Access - Multiple rows/records into 1 row & several columns - HELP!

    Hi all,
    I'm very new to Access. I have the following query:

    My data:

    Table 1
    Vessel | Date | Supplier | Inbound Qty
    Vessel A | 1/1/2012 | Supplier A | 2000
    Vessel A | 1/1/2012 | Supplier B | 2500
    Vessel A | 5/3/2012 | Supplier A | 3000



    Table 2
    Vessel | Date | Outbound Qty
    Vessel A | 1/1/2012 | 4500
    Vessel A | 5/3/2012 | 3000

    How I want the query to look:
    Vessel | Date | Supplier | Inbound Qty | Supplier | Inbound Qty | Outbound Qty
    Vessel A | 1/1/2012 | Supplier A | 2000 | Supplier B | 2500 | 4500
    Vessel A | 5/3/2012 | Supplier A | 3000 | Supplier A | 3000 | 3000

    Your help would be greatly appreciated

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Arranging records horizontally can get very tricky. If a crosstab can't accomplish, VBA is likely required. Review:

    http://forums.aspfree.com/microsoft-...ry-322123.html

    http://allenbrowne.com/func-concat.html
    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. Convert multiple rows to columns?
    By NelsonKauley in forum Programming
    Replies: 2
    Last Post: 04-04-2012, 04:59 PM
  2. Replies: 2
    Last Post: 01-02-2012, 06:46 PM
  3. Replies: 5
    Last Post: 12-01-2011, 05:38 PM
  4. Unmatched with multiple columns and rows
    By sampson20 in forum Programming
    Replies: 1
    Last Post: 04-18-2011, 10:48 AM
  5. Lookup Columns Multiple Records in report
    By schultzy in forum Reports
    Replies: 1
    Last Post: 01-02-2010, 12:21 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