enabled True or False

  • Thread starter Thread starter Jean-Paul
  • Start date Start date
J

Jean-Paul

Hi,

I have a pushbutton: knop_bewaren.
Clicking this button, makes some subform visible true, others visible false.
This works just fine, but,
I want the button itself to become enabled=false at the end of it's "job".
I get a message this doesn't work because the pushbutton still gets focus
How to solve this?

Thanks
JP
 
Move the focus somewhere else before you disable the command button.

Me!SomeOtherControl.SetFocus
Me!YourCommandButton.Enabled = False
 
Jean-Paul said:
I have a pushbutton: knop_bewaren.
Clicking this button, makes some subform visible true, others visible false.
This works just fine, but,
I want the button itself to become enabled=false at the end of it's "job".
I get a message this doesn't work because the pushbutton still gets focus


Set the focus somewhere else before disabling the button.
 
Back
Top