Ver Mensaje Individual
  #3  
Antiguo 04-04-2011
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Cita:
Empezado por turbopascual5.0 Ver Mensaje
Hola a todos. El siguiente código:

pregunta.SQL.Add('select * from linea_electro where id_el = arametro and id_el<>0' ) ;
pregunta.SQL.Add(' and estado=');
pregunta.SQL.Add('Pendiente de recepción');
Tu sentencia SQL queda así:

Código SQL [-]
select * from linea_electro where id_el = arametro and id_el<>0
and estado=Pendiente de recepción

Aquí se ve más claro. Faltan las comillas que encierren a Pendiente de recepción

Entonces, puedes modificar la última línea de tu código así:

Código Delphi [-]
pregunta.SQL.Add('"Pendiente de recepción"');

// Saludos
Responder Con Cita