Results 1 to 2 of 2
  1. #1
    pacific0786 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Posts
    1

    How do I split up one column with multiple rows related to one person into a query

    I have an Access Database and I want to split up one column into multiple columns. The one column has multiple rows that relate to one person, so for instance I have the following: I am taking information from both tables and I want to create a query but I need to separate out the mother, father, and guardian with the names attached

    So from the Child table :

    Joe Smith Address Phone


    The query that I created is from two tables, the child table and the family table: ( I used the dashes just for it to be easier to read)


    ------Child Table/PrimaryKey --------Family Table---------------------

    First Name--- Last Name--- First Name--- Last Name--- Relationship
    Joe ----------------Smith ----------Jane --------Doe-------------Mother
    Joe ----------------Smith ----------John---------Smith---------- Father

    So in this scenario I need to get the name of the second parent in another column....meaning have all the parents appear on the same line for this child, and each child there after....I just can't figure this out...I am hoping someone can help.

    So I need it to look like this:

    ------Child Table/PrimaryKey --------Family Table---------------------



    First Name------ Last Name------ First Name------ Last Name------ Relationship------ 2First Name------2Last Name------2Relationship
    Joe----------------Smith------------ Jane-------------- Doe------------- Mother-----------John---------------- Smith------------ Father

  2. #2
    rzw0wr is offline I will always be a newbie
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Indiana
    Posts
    479
    Can you show a picture of your tables.

    Dale

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

Similar Threads

  1. Replies: 7
    Last Post: 10-30-2012, 02:18 PM
  2. Replies: 5
    Last Post: 03-29-2012, 09:21 PM
  3. Replies: 5
    Last Post: 12-01-2011, 05:38 PM
  4. split column into rows.
    By rsampathy in forum Access
    Replies: 1
    Last Post: 03-03-2011, 12:15 PM
  5. Replies: 2
    Last Post: 07-26-2010, 11:28 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