Results 1 to 5 of 5
  1. #1
    arvive is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2019
    Posts
    3

    Transform Data

    Dear all kindly assist me in doing this. I have data in a table which look like below
    DATE DESIGNCODE TRAINEE
    01/08/2019 D0D23 1001
    01/08/2019 D0D24 1001
    02/08/2019 D0123 1002
    02/08/2019 100RT 1002


    I need a query to present it like below in a report. I have tried crosstab queries. (Please note any process to do this is welcome)


    DATE TRAINEE DESIGNCODE1 DESIGNCODE2 DESIGNCODE3


    01/08/2019 1001 D0D23 D0D24
    02/08/2019 1002 D0123 100RT

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    make a query to get the data you want, save it, say Q1
    start the query wizard
    create CROSSTAB query
    tell it to use Q1
    set the row data as DATE
    set the column data as CODE
    set the VALUE data as TRAINEE, and use FIRST VALUE

    save this

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,936

  4. #4
    arvive is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2019
    Posts
    3
    Thanks Sir but I still have not been able to get the result yet.

    (Below is the SQL) result data in attached pics.
    Click image for larger version. 

Name:	Screenshot_1.jpg 
Views:	7 
Size:	43.1 KB 
ID:	39436


    TRANSFORM First(monthlydesignallow.[EMPNO]) AS FirstOfEMPNO
    SELECT monthlydesignallow.[DATETIM]
    FROM monthlydesignallow
    GROUP BY monthlydesignallow.[DATETIM]
    PIVOT monthlydesignallow.[DESCODE];

    Result
    Click image for larger version. 

Name:	Screenshot_2.jpg 
Views:	7 
Size:	71.4 KB 
ID:	39437

  5. #5
    arvive is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2019
    Posts
    3
    Need to get the required result like this. Thanks
    Click image for larger version. 

Name:	Screenshot_3.jpg 
Views:	7 
Size:	26.0 KB 
ID:	39438

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

Similar Threads

  1. Replies: 21
    Last Post: 08-19-2018, 02:38 AM
  2. TRANSFORM Nz ERROR, Help!
    By juliak in forum Queries
    Replies: 1
    Last Post: 07-13-2017, 12:54 PM
  3. Best way to transform a table
    By siema24 in forum Access
    Replies: 5
    Last Post: 01-27-2017, 03:01 AM
  4. Transform Data .. pls help!
    By Toble in forum Queries
    Replies: 14
    Last Post: 02-23-2015, 05:34 PM
  5. Transform data model from Access to X
    By snoopy in forum Database Design
    Replies: 2
    Last Post: 05-29-2012, 12:37 AM

Tags for this Thread

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