Results 1 to 6 of 6
  1. #1
    siema24 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2017
    Posts
    22

    Best way to transform a table

    Hello,
    I'm wondering what's the best way to transform tabA into multi-valued field table tlbB. Please check images I'm including below. Thank you so much in advance!

    Click image for larger version. 

Name:	tblA.png 
Views:	19 
Size:	2.4 KB 
ID:	27237

    Click image for larger version. 

Name:	tblB.png 
Views:	19 
Size:	2.5 KB 
ID:	27238

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    You wouldn't want to.
    tblB is not normalized.
    but, youd need vb code to scan the recSet and concat the recs, then run append qry.

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Maybe you should write what you are trying to achieve and provide some sample data. Im assuming you will need a junction table here instead.

  4. #4
    siema24 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2017
    Posts
    22
    ranman256 - actually I want to! : ) I know that multi-value field tables are evil but all I want to do with is is just print it. It won't be a part of a any additional relation that could causes problems.
    Is there any way in access to pertofm this kind of a transformation?

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

  6. #6
    siema24 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2017
    Posts
    22
    orange - you are right. In fact I don't need to transform tblA. All I need to do is to create a report / query to inform user that "1 is assigned to elements a,b,c, 2 is assigned with elements d,e" etc. What approach what do you think will be the best? Thanks!

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

Similar Threads

  1. Transform and resend email
    By Sargedessy in forum Programming
    Replies: 3
    Last Post: 08-18-2016, 09:11 AM
  2. Transform Data .. pls help!
    By Toble in forum Queries
    Replies: 14
    Last Post: 02-23-2015, 05:34 PM
  3. Transform Column values in Table
    By Mnelson in forum Access
    Replies: 1
    Last Post: 06-11-2012, 03:06 PM
  4. Transform data model from Access to X
    By snoopy in forum Database Design
    Replies: 2
    Last Post: 05-29-2012, 12:37 AM
  5. PIVOT TRANSFORM in MSAccess
    By Vin in forum Queries
    Replies: 1
    Last Post: 05-19-2011, 09:03 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