runtime error 2101

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

Hi,

I've a form with some toggle buttons on it. the buttons are enabled or
disabled depending on the previous form's combobox values.

the problem is that one button gives me an error, where i could not set
the enabled-property to false. All the other buttons work.

If i delete that button the next button gives me the same error. Is
there a solution to this or a workaround?
 
It sound like you are trying to modify the enabled property of a control that
has the focus. You can't do that. You will have to find a way to execute
that code before any of the buttons have the focus.
 
Klatuu said:
It sound like you are trying to modify the enabled property of a control that
has the focus. You can't do that. You will have to find a way to execute
that code before any of the buttons have the focus.

:
Hi Klatuu,

Do you have a suggestion? I've tried the onload and onactivate, but that
didn't work either.
 
Back
Top