John W. Vinson said:
Thanks John It is showing My Horses and Owners but it is not putting my
owners on the same line , I am getting multiple records for my same
Horse
with different Owners.........Regards Bob I have fConcatChild in a
Module
[basConatChild]
Please post the query SQL.
Thanks John I am using fConcatChild, and I am getting 3 records for one
HorseID if he has 3 OwnerID's
Regards Bob
My Query
SELECT tblHorseDetails.HorseID, tblHorseDetails.OwnerID,
funGetHorse(0,tblHorseInfo.HorseID,False) AS Name,
tblOwnerInf
wnerLastName
FROM (tblHorseDetails INNER JOIN tblHorseInfo ON tblHorseDetails.HorseID =
tblHorseInfo.HorseID) INNER JOIN tblOwnerInfo ON tblHorseDetails.OwnerID =
tblOwnerInf
wnerID;
That's because a) you're not using fConcatChild in your query and b)
you're
including tblOwnerInfo in the query.
Try using the query I suggested:
SELECT tblHorseDetails.HorseID, tblHorseDetails.OwnerID,
funGetHorse(0,tblHorseInfo.HorseID,False) AS Name,
fConcatChild("tblOwnerInfo", "OwnerID", "OwnerLastName", "Long",
tblHorseDetails.OwnerID)
FROM tblHorseDetails INNER JOIN tblHorseInfo ON tblHorseDetails.HorseID =
tblHorseInfo.HorseID;
Note that this does NOT join the OwnerInfo table (which you don't want,
because you don't want to see every owner record) and it DOES actually
*call*
the fConcatChild function (which does you no good if you have it but don't
use
it).
I'm not sure I understand the tblHorseDetails.OwnerID though. I may have
to
google back through this thread (or these threads) and figure out your
table
relationships, and don't have time to do so today or tomorrow.