Maru_on
31-08-2010, 09:03:53
hola amigos resulta que estoy tratando de hacer una consulta con un rango de horas diferente tengo algo como esto
DM.ADOQueryFecha.SQL.Clear;
DM.ADOQueryFecha.SQL.Add('Select * From tblfactura');
DM.ADOQueryFecha.SQL.Add('Where hora Between :#06:00:00# and :#10:00:00#');
DM.ADOQueryFecha.Parameters.ParamByName('#06:00:00 #').Value:= strtotime(Edit1.text);
DM.ADOQueryFecha.Parameters.ParamByName('#10:00:00 #').Value:= strtotime(Edit2.Text);
claro si me funciona pero quisiera poder filtrar el a.m y el p.m para hacerlo mas exacto pues me arroja un error espero me entiendas y me den la mano gracias
ya lo he intentados de varias maneras
DM.ADOQueryFecha.SQL.Clear;
DM.ADOQueryFecha.SQL.Add('Select * From tblfactura');
DM.ADOQueryFecha.SQL.Add('Where hora Between :#06:00:00# and :#10:00:00#');
DM.ADOQueryFecha.Parameters.ParamByName('#06:00:00 #').Value:= strtotime(Edit1.text);
DM.ADOQueryFecha.Parameters.ParamByName('#10:00:00 #').Value:= strtotime(Edit2.Text);
claro si me funciona pero quisiera poder filtrar el a.m y el p.m para hacerlo mas exacto pues me arroja un error espero me entiendas y me den la mano gracias
ya lo he intentados de varias maneras