I have the query below that is causing the following error:
ERROR 3296 (Access)
The ON statment in your Join operation is incomplete or contains too many tables. You may want to put the ON expression in a WHERE clause
SELECT
TBLCATB.Markis AS [Account #], TBLCATB.[Group Number],
Max(TBLCATB.Name) AS [Account Name], Sum(TBLCATB.Current) AS [Current],
Sum(TBLCATB.Thirty) AS Thirty, Sum(TBLCATB.Sixty) AS Sixty,
Sum(TBLCATB.Ninety) AS Ninety, Max(TBLCATB.[Company Code]) AS [Company Code]
FROM
TBLCATB
LEFT JOIN asc_OracleMarkis
ON CLng(TBLCATB.Markis)=asc_OracleMarkis.Markis
WHERE
(((TBLCATB.LOB) Like "g*" Or (TBLCATB.LOB) Like "l*" Or
(TBLCATB.LOB) Like "pb*")) AND
CLng(tblcatb.markis) not in (select acctnumber from sb_acctinfo)
GROUP BY
TBLCATB.Markis, TBLCATB.[Group Number]
HAVING
(((Sum(TBLCATB.Ninety))<>0))
ORDER BY
Sum(TBLCATB.Ninety) DESC;
How can I avoid this error?
WHEREfiltering conditions are all based onTBLCATB...asc_OracleMarkisis not involved in theWHEREclause.