Ver Mensaje Individual
  #2  
Antiguo 20-03-2007
Avatar de kuan-yiu
[kuan-yiu] kuan-yiu is offline
Miembro Premium
 
Registrado: jun 2006
Ubicación: Galicia. España.
Posts: 1.017
Reputación: 22
kuan-yiu Va camino a la fama
La consulta sería así
Código SQL [-]
select Fecha,Hora,ImporteTicket,ImporteCobrado from LINEAS.Db
where (fecha>=:fec) and (hora>=:hor) and (importeTicket>ImporteCobrado)
Y luego tendrías que cargar los parámetros antes de lanzarla:
Código Delphi [-]
query.close;
query.parambyname('fec').asdate := miFecha;
query.parambyname('hor').astime := miHora;
query.open;
Responder Con Cita