Ver Mensaje Individual
  #2  
Antiguo 07-08-2014
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is offline
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - España
Posts: 18.282
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Cita:
Empezado por ginesgomezlopez Ver Mensaje
...así sustituyo el sql.text, :
Código SQL [-]
sql.Text:='select * from Pedidos where fechapedido=12/06/2014'
Según la Base de Datos puede variar, pero prueba a añadirle comillas (simples o dobles).

Código Delphi [-]
...
sql.Text:='select * from Pedidos where fechapedido="12/06/2014" ';
...
sql.Text:='select * from Pedidos where fechapedido=' + QuotedStr('12/06/2014');
...
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita