![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#4
|
|||
|
|||
|
Proba con esto:
DateC := EncodeDate(Year,Month,Day); IBQueryCheck.SQL.Clear; IBQueryCheck.SQL.Add('Select * from SEASONS'); IBQueryCheck.SQL.Add('where DATEFROM <= ateC and DATETO >= ateC');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 |
|
|
|