I have the following Data
Table: persons
How can I reproduce the following Results
No there is no ord
A CROSSTAB query using DCount can accomplish if there is unique identifier field. Add an autonumber field to the table.
TRANSFORM First(Persons.Child) AS FirstOfChild
SELECT Persons.Mother, Persons.Father
FROM Persons
GROUP BY Persons.Mother, Persons.Father
PIVOT "Child" & DCount("*","Persons","Mother & Father='" & [Mother] & [Father] & "' AND ID<" & [ID])+1;
Alternative involves VBA procedure writing records to another table.