![]() |
![]() |
![]() |
![]() |
![]() |
FTP | ![]() |
![]() |
CCD | ![]() |
![]() |
Buscar | ![]() |
![]() |
Trucos | ![]() |
![]() |
Trabajo | ![]() |
![]() |
Foros | ![]() |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
![]() |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
||||
|
||||
Query y Parámetros
Hola Amigos !
Este código : me devuelve el error: Una ayudita por favor .... |
#2
|
||||
|
||||
Pues es raro, debieran ser compatibles. Si 'DateC' es un campo de tipo Date, ¿no te funciona poner
IBQueryCheck.ParamByName('DateC').AsDate := DateC; en lugar de IBQueryCheck.ParamByName('DateC').Value := DateC; ? // Saludos |
#3
|
||||
|
||||
Gracias Roman una vez más !
Última edición por gluglu fecha: 31-01-2005 a las 14:27:59. |
#4
|
|||
|
|||
![]() Proba con esto:
DateC := EncodeDate(Year,Month,Day); IBQueryCheck.SQL.Clear; IBQueryCheck.SQL.Add('Select * from SEASONS'); IBQueryCheck.SQL.Add('where DATEFROM <= ![]() ![]() IBQueryCheck.ParamByName('DateC').AsDate := DateC; IBQueryCheck.Open; Otra forma de hacer los mismo es la sigueinte: DateC := EncodeDate(Year,Month,Day); IBQueryCheck.SQL.Clear; IBQueryCheck.SQL.Add('Select * from SEASONS'); IBQueryCheck.SQL.Add('where ' + Chr(39) + DateToStr(DateC) + Char(39) + ' Between DATEFROM and DATETO'); IBQueryCheck.Open; Nota: Hay un espacio antes del Between Saudos Luciano |
![]() |
|
|
![]() |
|