Ver Mensaje Individual
  #10  
Antiguo 02-03-2005
yhoho yhoho is offline
Miembro
 
Registrado: may 2004
Posts: 58
Reputación: 21
yhoho Va por buen camino
Mas lio jejejej sorry

Bein como empezar, en lo que m dijo argami me da error en el AsDateTime y Datetimepicker1 me dice q no esta declarado yo he puesto lo siguiente:

adoquery1.Close;

adoquery1.Parameters.ParamByName('a').AsDateTime:=Datetimepicker1.DateTime;

adoquery1.Parameters.ParamByName('b').AsDateTime:=Datetimepicker1.DateTime;

adoquery1.Open;

Y la select es: Select * from tabla where fecha between :a and :b;

Tb he probado select * from tabla where (fecha>:a and fecha <:b);

Que asi no m da error pero no m sale ninguna fila solo me sale cuando dejo el signo mayor, eso si m sale tanto si es mayor como menor es decir no hace distincion, NO SE QUE HACER JEJEJEJEJEJEJ BUENO VER SI LO SACAMOS GRACIAS GENTE.
Responder Con Cita