Changing the focus

D

dhstein

I want to set a textbox to .Visible = False in the event "After_Update" but I
can't set that property when the control has the focus. Is there a way to
move the focus to another control and run some code there that can set the
textbox to .Visible = False ? Thanks for any help you can provide.
 
M

M Skabialka

In the After update:
SomeOtherField.SetFocus
ThisField.visible= False

You can't set focus back to an invisible control
 
D

dhstein

Thank you - that worked great.



M Skabialka said:
In the After update:
SomeOtherField.SetFocus
ThisField.visible= False

You can't set focus back to an invisible control
 

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

Similar Threads

Set Focus 2
Objects, Forms, Me, ! , SetFocus etc. 6
Setting a control to Visible=False 2
Set the focus 3
Error 2185 2
Set Focus after Undo 2
Can't Move Focus Problem 1
Set Focus 3

Top