Hi,
i've been trying this code in MS Query in excel but it keeps telling me the "SQL command is not properly ended"!...i've been trying so hard to understand where the problem is but no luck so far. The code works perfect in SQL view in MS Access. can someone please help me?
SELECT DISTINCT Copy1.RQN_NO, Copy1.RQN_TITLE, Copy1.RQN_STATUS
FROM R_RQNMAS AS Copy1 LEFT JOIN [SELECT Copy2.RQN_NO FROM R_RQNMAS AS Copy2 WHERE (Copy2.RQN_STATUS="CL" Or Copy2.RQN_STATUS="CN" Or Copy2.RQN_STATUS="RJ")]. AS SQ ON Copy1.RQN_NO=SQ.RQN_NO
WHERE (((SQ.RQN_NO) Is Null));
i've been trying this code in MS Query in excel but it keeps telling me the "SQL command is not properly ended"!...i've been trying so hard to understand where the problem is but no luck so far. The code works perfect in SQL view in MS Access. can someone please help me?
SELECT DISTINCT Copy1.RQN_NO, Copy1.RQN_TITLE, Copy1.RQN_STATUS
FROM R_RQNMAS AS Copy1 LEFT JOIN [SELECT Copy2.RQN_NO FROM R_RQNMAS AS Copy2 WHERE (Copy2.RQN_STATUS="CL" Or Copy2.RQN_STATUS="CN" Or Copy2.RQN_STATUS="RJ")]. AS SQ ON Copy1.RQN_NO=SQ.RQN_NO
WHERE (((SQ.RQN_NO) Is Null));