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

Top