You can do what you want with a
cross-tab query. To make the development easy, you need to add a field to the child table if it doesn't already exist. The field would be ChildNo to identify the child's position in the family - 1st,2nd, 3rd,... Therefore, I assume your tables have the following columns.
MomTbl:
MomId - Number
MomName - Text
MonAddress - Text
ChildTbl:
ChildId - Number
ChildName - Text
ChildNo - Number (Child number within family)
MomID - Number
Assume the data looks like this.
[tt]
MomTbl:
MomID MomName MomAddress
1 Janice 555 Main St
2 Linda 2003 S Willow Dr
3 Mary 122 Franklin Ct #7B
.
.
.
ChildTbl:
ChildID ChildName ChildNo MomID
1 Larry 1 1
2 Pat 2 1
3 Sandra 1 2
4 Nathan 2 2
5 Mike 3 2
6 Kim 4 2
7 Robyn 5 2
8 Karen 1 3
9 James 2 3
.
.
.[/tt]
Create a query to join the two tables. I called it qFamilies.
SELECT MomTbl.MomName, MomTbl.MomAddress, ChildTbl.ChildNO, ChildTbl.ChildName
FROM MomTbl INNER JOIN ChildTbl ON MomTbl.MomId = ChildTbl.MomID;
Then create a cross-tab query. You can use the cross-tab query wizard. The query should look like the following.
TRANSFORM First(qFamilies.ChildName) AS FirstOfChildName
SELECT qFamilies.MomName, qFamilies.MomAddress
FROM qFamilies
GROUP BY qFamilies.MomName, qFamilies.MomAddress
PIVOT "Child" & CStr([ChildNO]);
When you execute the cross-tab query you'll see results like the following.
[tt]
MomName MomAddress Child1 Child2 Child3 Child4 Child5
Janice 555 Main St Larry Pat
Linda 2003 S Will.. Sandra Nathan Mike Kim
Mary 122 Franklin.. Karen James John Kellie Susan[/tt]
Hope this helps. Terry
"I'm not dumb. I just have a command of throughly useless information." - Calvin, of Calvin and Hobbes