Perdón. Ahí va como debe..
Código Delphi
[-]
with DMFicha.IBQNomina do
try
DisableControls;
Close;
SQL.Clear;
SQL.Add('SELECT PRIMER_APELLIDO, SEGUNDO_APELLIDO, NOMBRE, CAMPO4, CAMPO5, CAMPO6,');
SQL.Add('HORAS_REALES, HORAS_CALCULADAS, SALARIO');
SQL.Add('FROM FICHA');
SQL.Add('WHERE CAMPO4='+quotedstr(ComboBox1.Text));
SQL.Add(' AND CAMPO5='+quotedstr(ComboBox2.Text));
SQL.Add('ORDER BY PRIMER_APELLIDO');
Open;
DMFicha.RvProject2.Execute;
finally
EnableControls;
end;
close;
end;