I need to get information from 3 tables in an MDB file.
I need all the columns in the first table.
I need 2 columns in the 2nd table where it's primary key matches a
column in the first table.
I need several columns in the 3rd table where it's primary key matches a
column in the 2nd table.
I tried this:
SELECT calPackage.*,ca lShipment.m_shi pDateTime,
calShipment.m_f oreignKey00,cal PkgAgent.m_resi dential,
calPkgAgent.m_S treetAddress,ca lPkgAgent.m_Cit y,
calPkgAgent.m_S tateProv,calPkg Agent.m_Country ,
calPkgAgent.m_P ostalCode,calPk gAgent.m_RoomFl oor,
calPkgAgent.m_D epartment,calPk gAgent.m_Attent ion,
calPkgAgent.Sm_ businessName
FROM calPackage
INNER JOIN calShipment
ON calShipment.m_p rimaryKey=calPa ckage.m_foreign Key
INNER JOIN calPkgAgent
ON calPkgAgent.m_p rimaryKey=calSh ipment.m_foreig nKey00
but when I tried to execute the command, I get:
Syntax error (missing operator) in query expression
'calShipment.m_ primaryKey=calP ackage.m_foreig nKey INNER JOIN calPkgAgent
ON calPkgAgent.m_p rimaryKey=calSh ipment.m_foreig nKey00'.
I'm looking for any help I can get. Thanks!
*** Sent via Developersdex http://www.developersdex.com ***