Enable\Disable control on form

  • Thread starter Thread starter Rohit Thomas
  • Start date Start date
R

Rohit Thomas

I have an Option group on a form that has 4 option buttons
and a text box. There is a command button(Continue...)
that I would like to become enabled only if one of the 4
option buttons is selected and data is entered into the
text box, otherwise the command button would remain
disabled. I am not sure which event I should be using on
the textbox\option button. If anyone can point me in the
right direction or provide some sample code, I would
appreciate it.

Thanks,
Rohit Thomas
 
Use the AfterUpdate event of the option group itself to check its value and
then disable/enable the command button.
 
Back
Top