S
Sinfash
Hello I don't know how to do it:
I want to make a Subquery that create a field form sum two created fields in
the main query.
This is the main query:
SELECT Movimientos.Cta, Sum(Movimientos.Debe) AS SumOfDebe,
Sum(Movimientos.Haber) AS SumOfHaber, Cuentas.Naturaleza
FROM Cuentas INNER JOIN Movimientos ON Cuentas.Siglas = Movimientos.Cta
GROUP BY Movimientos.Cta, Cuentas.Naturaleza
HAVING (((Cuentas.Naturaleza)="debe"));
Well i want to use SumofDebe and SumOfHaber for create Resta= SumofDebe -
SumOfHaber
When i make it in the main Query ask me for the two fields but i don't want
that the machine askme for the fields becouse this will be created.
I want to make a Subquery that create a field form sum two created fields in
the main query.
This is the main query:
SELECT Movimientos.Cta, Sum(Movimientos.Debe) AS SumOfDebe,
Sum(Movimientos.Haber) AS SumOfHaber, Cuentas.Naturaleza
FROM Cuentas INNER JOIN Movimientos ON Cuentas.Siglas = Movimientos.Cta
GROUP BY Movimientos.Cta, Cuentas.Naturaleza
HAVING (((Cuentas.Naturaleza)="debe"));
Well i want to use SumofDebe and SumOfHaber for create Resta= SumofDebe -
SumOfHaber
When i make it in the main Query ask me for the two fields but i don't want
that the machine askme for the fields becouse this will be created.