Hola lking, en vez de preguntar por cada mes puedes utilizar la propiedad ItemIndex del ComboBox y tampoco necesitas hacer la conversión a fecha si ya tienes mes y año en variables.
Código Delphi
[-]
mes := IntToStr(ComboBox1.ItemIndex+1);
........................
anyo:=ComboBox2.Text;
edit1.Text:='01'+'/'+mes+'/'+ano;
with Form45.Query1 do begin
Close;
SQL.Text := 'Select Fecha,grupo,des_cu,debe,haber '+
'from costosygastos.db '+
'where Extract(month from fecha) = '+mes+
' and Extract(year from fecha) = '+anyo;
Open;
end;
................................
Saluditos