Results 1 to 5 of 5
  1. #1
    accessnewb24 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2019
    Posts
    5

    Transpose data from form into table

    I am designing a form to use for our production database. This will be replacing our current build form which currently is just paper copies. The problem I am having is this form will need to have data entered horizontally and there isn't really any way I can think of to change that.

    Is there a way for me to have this data entered into a horizontal table then added into the 'real' vertical table? System ID and Cell # will already be in the table by this step, the operators just need to assign the proper part # to the cell number which will be done as they build.

    SystemID---A1---A1---A1
    Cell#--------1-----2-----3
    Part#------a-----b-----c


    SystemID-----Cell#------Part#
    A1---------------1-----------a
    A1---------------2-----------b


    A1---------------3-----------c

  2. #2
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    In Excel, load the Table/Query into Power Query. Run the Mcode below to transform the data.
    Code:
    let
        Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
        #"Transposed Table" = Table.Transpose(Source),
        #"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table", [PromoteAllScalars=true]),
        #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Cell#", Int64.Type}, {"Part#", type text}}),
        #"Added Custom" = Table.AddColumn(#"Changed Type", "System ID", each "A1"),
        #"Reordered Columns" = Table.ReorderColumns(#"Added Custom",{"System ID", "Cell#", "Part#"})
    in
        #"Reordered Columns"
    Close and Load data back to Excel. Reload to your Access Table.

  3. #3
    accessnewb24 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2019
    Posts
    5
    Thanks for the reply! I was hoping to keep this within Access and have it be done at the click of a button

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,537
    How many entries of Cell# and Part# will there be for each SystemID
    Edit:
    Is there a way for me to have this data entered into a horizontal table then added into the 'real' vertical table? System ID and Cell # will already be in the table by this step, the operators just need to assign the proper part # to the cell number which will be done as they build.
    So why does the data entry have to be horizontal and not vertical.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Thanks for the reply! I was hoping to keep this within Access and have it be done at the click of a button
    Is this a one time event? If so, what difference does it make if this is how you need the data?

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

Similar Threads

  1. Replies: 5
    Last Post: 04-22-2017, 06:13 AM
  2. Transpose the data
    By deepakes2 in forum Access
    Replies: 6
    Last Post: 07-11-2016, 01:27 PM
  3. Transpose Data of single table
    By Atif Mahmood in forum Access
    Replies: 4
    Last Post: 05-05-2016, 04:50 AM
  4. Transpose Data
    By jamesfranklin in forum Queries
    Replies: 15
    Last Post: 03-07-2013, 09:19 AM
  5. Transpose Data
    By Ray67 in forum Database Design
    Replies: 10
    Last Post: 08-07-2012, 06:18 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