Ver Mensaje Individual
  #1  
Antiguo 09-01-2009
mgaytan mgaytan is offline
Miembro
 
Registrado: jun 2007
Posts: 18
Reputación: 0
mgaytan Va por buen camino
ParamByName No guarda valor

Buenas tardes a todos. Tengo el siguiente problema:
necesito obtener una consulta mediante un rango de fechas el codigo que tengo es el siguiente:


Código Delphi [-]
query1.close;
query1.sql.clear;
query1.sql.add('SELECT * FROM REPORTES WHERE FACTURA BETWEEN : AND : ORDER BY FACTURA');
query1.parambyname('').value:=StrToDate(edit1.text);
query1.parambyname('').value:=StrToDate(edit2.text);
query1.open;





una vez compilado me da este error: Query1:Field" is of an unknown type.

tambien intente con:
query1.parambyname('').value:=DateTimePicker1.Date;

y tampoco funciona.

De antemano gracias por su ayuda.
Responder Con Cita