Ver Mensaje Individual
  #2  
Antiguo 08-05-2006
Avatar de vtdeleon
vtdeleon vtdeleon is offline
Miembro
 
Registrado: abr 2004
Ubicación: RD & USA
Posts: 3.236
Reputación: 24
vtdeleon Va por buen camino
Saludos

Intenta esto con parametros:
Código Delphi [-]
With Dataset do Begin
  Close;
  Sql.Text:='Select clave_promo from parrilla '+
                'where clave_radio=:radio AND '+
                'clave_promo=:grid AND '+
                'fecha<:fecha';
  ParamByName('radio').AsString:=Radios.Text;
  ParamByName('grid').AsString:=grid.Cells[0,fila_actual]
  ParamByName('fecha').AsDatetime:=fecha_buscar;
  Open;
end;
__________________
Van Troi De León
(Not) Guía, Code vB:=Delphi-SQL, ¿Cómo?
Viajar en el tiempo no es teóricamente posible, pues si lo fuera, ya estarían aqui contándonos al respecto!
Responder Con Cita