Tech Support Guy banner
Status
Not open for further replies.
1 - 5 of 5 Posts

·
Registered
Joined
·
21,334 Posts
Discussion Starter · #1 ·
I want to disable a command button after an event is fired.

The button fires of a RunSQL event, sets a value in a table to not show the button and then I tried to have it set Me!ControlName.Enabled = False, but it will not let me because the control still has focus. Is there a way to remove the focus and then set the control to disabled? I was thinking of setting the focust to another control and then disabling it.
 

·
Registered
Joined
·
19,896 Posts
Rockn, you should be able to do it as you have outlined by setting the "Focus" to another control.
If you do not have a "Control" on the same form as the Command Button then I usually use a text box, it can't be set to "Invisible", but it can be set to a very small size.
 
1 - 5 of 5 Posts
Status
Not open for further replies.
Top