N
NS
Hi there,
I've got a query (below) that is suppose to return me a number. The first
select statemetn returns me a number and also the second one. I just want to
get the first minus the second one and this sql doesn't seem to work. Access
returns me an error saying : Syntax error in From clause. But it's fine.
They all run individually.
Can you see any problems?
-------------------------------------------------
select sum(sale.[Ord total amt]) as Expr1
from sale
minus
SELECT Sum(cashrec.amount) AS Expr1
FROM cashrec, crsale
WHERE (((cashrec.[Remittance advice #])=[crsale].[remittance advice #]));
I've got a query (below) that is suppose to return me a number. The first
select statemetn returns me a number and also the second one. I just want to
get the first minus the second one and this sql doesn't seem to work. Access
returns me an error saying : Syntax error in From clause. But it's fine.
They all run individually.
Can you see any problems?
-------------------------------------------------
select sum(sale.[Ord total amt]) as Expr1
from sale
minus
SELECT Sum(cashrec.amount) AS Expr1
FROM cashrec, crsale
WHERE (((cashrec.[Remittance advice #])=[crsale].[remittance advice #]));