enabled True or False

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
 
B

Beetle

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

Me!SomeOtherControl.SetFocus
Me!YourCommandButton.Enabled = False
 
M

Marshall Barton

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.
 
Top