Results 1 to 6 of 6
  1. #1
    Avi is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    3

    move value in column to row

    I have a table that consist of GL account, cost, packing slip.
    01501200100100 $57.71 093183
    01501300100100 $71.51 093183
    01501400100100 $137.92 093183

    And need it in one row, is there a way to do it in access?



    01501200100100 01501300100100 01501400100100 packing slip
    $57.71 $71.51 $137.92 093183

    Thnak you,

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    Check this tutorial: http://www.datapigtechnologies.com/f.../crosstab.html

    How many GL accounts are involved? As you will see from the tutorial, this can be done only if there is a small number.

  3. #3
    kennejd is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    188
    I would probably write some vba....loop through each record. I'm curious...why do you need to get the data in this 'single-line' format?

  4. #4
    Avi is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    3
    Thank you, crosstab will do it!

  5. #5
    Avi is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    3
    I need to to join the query to another table by the packing slip number.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    Crosstab might not be required in order to do that join. Still don't know what you are really trying to do. Possibly a report using Grouping and Sorting features would produce your desired output. Need more info if you want to explore options.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-14-2011, 10:04 AM
  2. Move fields to the right in a report
    By degras in forum Reports
    Replies: 1
    Last Post: 01-20-2011, 08:40 AM
  3. Replies: 1
    Last Post: 04-15-2010, 02:07 AM
  4. Move data from one table to another
    By rebyrd in forum Queries
    Replies: 2
    Last Post: 12-24-2009, 12:52 AM
  5. inserting values in column based another column
    By wasim_sono in forum Database Design
    Replies: 1
    Last Post: 06-27-2006, 05:23 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