Ver Mensaje Individual
  #3  
Antiguo 01-07-2010
cloayza cloayza is offline
Miembro
 
Registrado: may 2003
Ubicación: San Pedro de la Paz, Chile
Posts: 947
Reputación: 25
cloayza Tiene un aura espectacularcloayza Tiene un aura espectacular
Podria quedar asi:

Código Delphi [-]
consulta:=FORMAT('SELECT ENCORDENES.ORDENID, ENCORDENES.NOMBRE,ENCORDENES.FECHA , DETORDEN.DESCRIP ,DETORDEN.CANTIDAD, 
DETORDEN.PUNIT , DETORDEN.SUBTOTAL , DETORDEN.PLACAS , DETORDEN.ASIGNADOA,DETORDEN.TIPO '+
'FROM DETORDEN INNER JOIN ENCORDENES ON DETORDEN.ORDENID =ENCORDENES.ORDENID '+
'WHERE encordenes.Fecha between %s AND %s',
[QuotedStr(datetostr(FechaIni.Date)), QuotedStr(datetostr(FechaFin.Date))]);
Responder Con Cita