I have a database (in access) having 3 tables: Parent, Child1 & Child2. All the 3 tables have a common field 'PersonID'. Parent table has, say, 10 records having PersonID 1 to 10. Child1 has, say 3 records all having same PersonID, say 5. Child2 has , say 2 records, all having same PersonID, say 5. I want to create a report using DataReport (may be wiith DataEnvironment also) in VB6. The output in report should be like below:
Record1 of Parent
Record2 of Parent
.
.
Record5 of Parent
Record1 of Child1
Record2 of Child1
Record3 of Child1
Record1 of Child2
Record2 of Child2
Record6 of Parent
.
.
Record10 of Parent
For this I think I have to use Shape, Append & Relate commands in the form but don't know how to relate TWO child tables with Parent table.
Please help me.
Thanks in advance.
Always Believe in GOD!
Record1 of Parent
Record2 of Parent
.
.
Record5 of Parent
Record1 of Child1
Record2 of Child1
Record3 of Child1
Record1 of Child2
Record2 of Child2
Record6 of Parent
.
.
Record10 of Parent
For this I think I have to use Shape, Append & Relate commands in the form but don't know how to relate TWO child tables with Parent table.
Please help me.
Thanks in advance.
Always Believe in GOD!
Comment