V
verci
Hi, I use this query as my reports underleying query but I do not know what
the correct sintax is for the IIF statement, can you show me how to do this
correctly???, I'm trying tu sum all the values of the field Importe if the
field Factura.Retencion is True.
SELECT FacturaDetalle.FacturaID, Factura.NumFactura, Factura.FechFactura,
Factura.Nombre, Factura.Retencion, FacturaDetalle.Importe,
Factura.Cancelada,
GranRet: IIF( Factura.Retencion = true , Sum(([Importe]*4)/100),"")
FROM Factura INNER JOIN FacturaDetalle ON Factura.FacturaID =
FacturaDetalle.FacturaID
WHERE (((Factura.FechFactura) Between [Fecha Inicial:] And [Fecha Final:]));
the correct sintax is for the IIF statement, can you show me how to do this
correctly???, I'm trying tu sum all the values of the field Importe if the
field Factura.Retencion is True.
SELECT FacturaDetalle.FacturaID, Factura.NumFactura, Factura.FechFactura,
Factura.Nombre, Factura.Retencion, FacturaDetalle.Importe,
Factura.Cancelada,
GranRet: IIF( Factura.Retencion = true , Sum(([Importe]*4)/100),"")
FROM Factura INNER JOIN FacturaDetalle ON Factura.FacturaID =
FacturaDetalle.FacturaID
WHERE (((Factura.FechFactura) Between [Fecha Inicial:] And [Fecha Final:]));