I am using Access 2007.
I have a table called auxiliary_tbl. It contains 3 foreign keys (chair, secretary, treasurer) to a table called individual_tbl.
I want to make a query on the auxiliary_tbl that includes the corresponding names of the 3 foreign keys in the individual_tbl.
Right now I have an error "join not supported". I have coded the following without success.
SELECT auxiliary_tbl.*,
a1.indvFirstname as chairfirstname, a1.indvLastname as chairlastname,
a2.indvFirstname as sectfirstname, a2.indvLastname as sectlastname,
a3.indvFirstname as treasfirstname, a3.indvLastname as treaslastname
FROM ((auxiliary_tbl)
left join individual_tbl a1 ON (a1.indvID = auxChair))
left join individual_tbl a2 ON a2.indvID = auxSecretary
left join individual_tbl a3 ON a3.indvID = auxTreasurerperson
I appreciate any help. If there's some other way to get the names, let me know.
Thanks
I have a table called auxiliary_tbl. It contains 3 foreign keys (chair, secretary, treasurer) to a table called individual_tbl.
I want to make a query on the auxiliary_tbl that includes the corresponding names of the 3 foreign keys in the individual_tbl.
Right now I have an error "join not supported". I have coded the following without success.
SELECT auxiliary_tbl.*,
a1.indvFirstname as chairfirstname, a1.indvLastname as chairlastname,
a2.indvFirstname as sectfirstname, a2.indvLastname as sectlastname,
a3.indvFirstname as treasfirstname, a3.indvLastname as treaslastname
FROM ((auxiliary_tbl)
left join individual_tbl a1 ON (a1.indvID = auxChair))
left join individual_tbl a2 ON a2.indvID = auxSecretary
left join individual_tbl a3 ON a3.indvID = auxTreasurerperson
I appreciate any help. If there's some other way to get the names, let me know.
Thanks