Cita:
Empezado por lKinGl
me sale un error que dice incompatible types con string and word y otro con string and integer
|
Tienes que convertir a string lo que te devuelve las funciones de YearOf y MonthOf.
Código Delphi
[-]
SQL.Text := 'Select Fecha,grupo,des_cu,debe,haber '+
'from costosygastos.db '+
'where Extract(month from fecha) = '+IntToStr(MonthOf(DateTimePicker.Date))+
' and Extract(year from fecha) = '+IntToStr(YearOf(DateTimePicker.Date));
Saluditos