SetFocus won't work

  • Thread starter Thread starter David G.
  • Start date Start date
D

David G.

txtMyTextBox.Setfocus

does not put the cursur in the textbox

the textbox is not locked

the textbox is enabled

what's wrong with SetFocus?
 
David said:
txtMyTextBox.Setfocus

does not put the cursur in the textbox

the textbox is not locked

the textbox is enabled

what's wrong with SetFocus?


Nothing is wrong with SetFocus. You are probably trying to
do it in an inappropriate event.
 
To what object/event is that code attached? And where is the textbox in
relation to that object?
 
Hi there,
If you put the SetFocus in your textbox's After Update event (or some other
events - maybe) and have a Msgbox (or something else ?), the .Setfocus may
not working right. Try:
OtherTextBox.Setfocus
txtMyTextBox.Setfocus
 

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

Back
Top