procedure TFrmBuscarVehiculo.SpeedButton1Click(Sender: TObject);
var consulta : string;
begin
consulta:='Select * from BitacoraVehiculos';
if edit1.Text<>' ' then begin
Query1.Sql.Text:=consulta+ ' fechadeservicio=:fecha';
Query1.ParamByName(fecha).asDate:=StrtoDate(fecha.text);
end else
if edit2.Text<>' ' then begin
Query1.Sql.Text:=consulta+ ' numerofactura=:fact'
Query1.ParamByname('fact').AsInteger:= StrtoInt(edit2.text);
end else
if edit3.Text<>' ' then begin
Query1.Sql.Text:=consulta+ ' importe=:importe'
Query1.ParamByName('importe').Asfloat:=StrtoFloat(edit3.text);
end;
Query1.Open;
end;