ok, this is cool, thanks for this - learned something.
However, it is not quite getting me what I want. Specfically, if I add
the
table twice to the grid, then I have to add [SeqNo} from
and
[SeqNo]
from [Table_1], and put in a criteria (on the same line) for each field
(respectively, 1 for first field, 2 for second field, then I put in the
Name
field twice, I get the format I want, but it is missing the records where
there is no SeqNo=2, that is, where there is only 1 parent member in the
database (not 2 parents). If this isn't clear, it is only giving me
"parent"
records where there are two parents (seqno 1 and seqno 2). I need the
final
query to give me all the records, even if there is only a seqno 1
associated
with a famno. Here is the SQL currently:
SELECT tMemberDetail.FamNo, tMemberDetail.SeqNo, tMemberDetail_1.SeqNo,
tMemberDetail.HebrewName, tMemberDetail_1.HebrewName
FROM (tMemberDetail INNER JOIN tMemberDetail AS tMemberDetail_1 ON
tMemberDetail.FamNo = tMemberDetail_1.FamNo) INNER JOIN tMemberHeader ON
tMemberDetail.FamNo = tMemberHeader.FamNo
WHERE (((tMemberDetail.SeqNo)=1) AND ((tMemberDetail_1.SeqNo)=2));
Any further thoughts?
On Wed, 17 Mar 2010 20:53:39 -0400, "Joseph Greenberg"
<
[email protected]>
[quoted text clipped - 11 lines]
joining the two on FamNo. Put a criterion of =1 on the first instance
of
SeqNo, and =2 on the second. You will now have both name fields
available.