Código SQL [-]query1.SQL.Text:=('select * from Cursos where id_curso='+quotedstr(maskedit1.text)+' AND Fecha_Inicio>='+quotedstr(FormatDateTime('mm/dd/yyyy',DATETIMEPICKER1.Date))+' AND Fecha_Fin<='+quotedstr(FormatDateTime('mm/dd/yyyy',DATETIMEPICKER2.Date));
query1.SQL.Text:=('select * from Cursos where id_curso='+quotedstr(maskedit1.text)+' AND Fecha_Inicio>='+quotedstr(FormatDateTime('mm/dd/yyyy',DATETIMEPICKER1.Date))+' AND Fecha_Fin<='+quotedstr(FormatDateTime('mm/dd/yyyy',DATETIMEPICKER2.Date));