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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top