No se Roman, Como lo hago?
Me das un ejemplo en un caso.
Por otro lado, cambie la sintaxis y sigue, asi:
Código Delphi
[-]ShortDateFormat := '#dd/mm/yyyy#';
ADOQuery1.Active:= False;
ADOQuery1.SQL.Text:= 'SELECT DISTINCTROW Factura.Fecha, Factura.Terminos, Sum(Factura.MntTotal) AS SumaDeMntTotal '+
' FROM Factura '+
' WHERE Factura.Fecha = '+DateToStr(DTP1.DateTime)+' AND Factura.Terminos = "Contado" '+
' GROUP BY Factura.Fecha, Factura.Terminos ';
ADOQuery1.Active:= True;
Saludos