D
Darhl Thomason
DBType = Access 2003
Tables = tblType, tblOwners, tblStoreData
tblType has TypeID, TypeName
tblOwners has OwnerID, OwnerName
tblStoreData has TypeID, OwnerID, plus too many others to list, they're not
important here
I have an inner join that's giving me fits. It is:
strSQL = "SELECT * FROM (tblStoreData " _
& "INNER JOIN tblOwners ON tblStoreData.OwnerID = tblOwners.OwnerID)
" _
& "INNER JOIN tblType ON tblStoreData.TypeID = tblType.TypeID "
If I take the 2nd INNER JOIN out, it works fine, if I take out the 1st INNER
JOIN it breaks, so it's obviously the 2nd INNER JOIN that's the problem.
When I run the report that calls this SQL statement, it tells me "The
specified filed 'TypeID' could refer to more than one table listed in the
FROM clause of your SQL statement."
Does anyone have any ideas for me?
Thanks!
Darhl
Tables = tblType, tblOwners, tblStoreData
tblType has TypeID, TypeName
tblOwners has OwnerID, OwnerName
tblStoreData has TypeID, OwnerID, plus too many others to list, they're not
important here
I have an inner join that's giving me fits. It is:
strSQL = "SELECT * FROM (tblStoreData " _
& "INNER JOIN tblOwners ON tblStoreData.OwnerID = tblOwners.OwnerID)
" _
& "INNER JOIN tblType ON tblStoreData.TypeID = tblType.TypeID "
If I take the 2nd INNER JOIN out, it works fine, if I take out the 1st INNER
JOIN it breaks, so it's obviously the 2nd INNER JOIN that's the problem.
When I run the report that calls this SQL statement, it tells me "The
specified filed 'TypeID' could refer to more than one table listed in the
FROM clause of your SQL statement."
Does anyone have any ideas for me?
Thanks!
Darhl