R
Ray Todd Jr
I'm trying to join two tables via SQL and am getting errors. Any help is
appreciated.
The tables:
taDEFENDANTS
DefendantsID PK
PropertyID FK
DefendantsNameID FK
DefendantType FK
TaDEFENDANTNAMES
DefendantsNameID PK
LastName
FirstName
MiddleName
Suffix
The SQL:
SELECT DISTINCT taProperty.PropertyID, CONCATENATE("SELECT FirstName & ' ' &
MiddleName & ' ' & LastName & ' ' & Suffix, DefendantsNameID FROM
taDEFENDANTNAMES INNERJOIN taDEFENDANTS ON
taDEFENDANTNAMES.DefendantsNameID=taDEFENDANTS.DefendantsNameID WHERE
PropertyID=" & taProperty.PropertyID & " AND DefendantTypeID=20") as
Property_Owner FROM taPROPERTY
The Error:
Run-Time Error: 3131
Syntax Error in FROM Clause
appreciated.
The tables:
taDEFENDANTS
DefendantsID PK
PropertyID FK
DefendantsNameID FK
DefendantType FK
TaDEFENDANTNAMES
DefendantsNameID PK
LastName
FirstName
MiddleName
Suffix
The SQL:
SELECT DISTINCT taProperty.PropertyID, CONCATENATE("SELECT FirstName & ' ' &
MiddleName & ' ' & LastName & ' ' & Suffix, DefendantsNameID FROM
taDEFENDANTNAMES INNERJOIN taDEFENDANTS ON
taDEFENDANTNAMES.DefendantsNameID=taDEFENDANTS.DefendantsNameID WHERE
PropertyID=" & taProperty.PropertyID & " AND DefendantTypeID=20") as
Property_Owner FROM taPROPERTY
The Error:
Run-Time Error: 3131
Syntax Error in FROM Clause