Hi all,
I have a table of students and their parents information.
Example:
ChildFirstName,_ ParentID,_ ParentFirstName,_ ParentLastName.
Child1___________ 1_________ ParentF1_________ ParentL1
Child2___________ 2_________ ParentF2_________ ParentL2
Child3___________ 3_________ ParentF3_________ ParentL3
Child4___________ 2_________ ParentF2_________ ParentL2
Child 2 and 4 have the same parent.
How can I in a Query (Group By [ParentID]) do the following:
add every first found child to 'Column5',
add every Second found child to 'Column6'
So that 'Parent2' will have 'Child2' in 'Column5', and 'Child4' in 'column6'.
Any suggestion?
I have a table of students and their parents information.
Example:
ChildFirstName,_ ParentID,_ ParentFirstName,_ ParentLastName.
Child1___________ 1_________ ParentF1_________ ParentL1
Child2___________ 2_________ ParentF2_________ ParentL2
Child3___________ 3_________ ParentF3_________ ParentL3
Child4___________ 2_________ ParentF2_________ ParentL2
Child 2 and 4 have the same parent.
How can I in a Query (Group By [ParentID]) do the following:
add every first found child to 'Column5',
add every Second found child to 'Column6'
So that 'Parent2' will have 'Child2' in 'Column5', and 'Child4' in 'column6'.
Any suggestion?