The jet database engine does not recognize 'tblComments.refSAR_ID' as a valid field name or expression
Can anyone tell me what am I doing wrong here?
This is the query in question:
Expand|Select|Wrap|Line Numbers
- SELECT tblBalance.SAR_ID, tblComments.Comment
- FROM tblBalance LEFT JOIN tblComments ON tblBalance.SAR_ID = tblComments.refSAR_ID
- WHERE (((tblComments.CDate)=(SELECT Max(X.CDate) FROM tblComments As X WHERE X.refSAR_ID = tblComments.refSAR_ID) Or (tblComments.CDate) Is Null));
This is the code for the the other query:
Expand|Select|Wrap|Line Numbers
- SELECT tblBalance.SAR_ID, qryConst.Team, qryConst.[Team Code]
- FROM qryConst, tblBalance INNER JOIN qryComm ON tblBalance.SAR_ID = qryComm.SAR_ID;
and here's the code for the crosstab query qryConst:
Expand|Select|Wrap|Line Numbers
- TRANSFORM First(xtblConst.Value) AS FirstOfValue
- SELECT xtblConst.order
- FROM xtblConst
- GROUP BY xtblConst.order
- PIVOT xtblConst.Title;