Hi,
I have a form that opens up and I want to be able to start typing in a select textbox without having to first use the mouse to click on the textbox to select it.
I have had a quick look but couldn't get it to work.
Any ideas??
Thanks
Ben
Hi,
I have a form that opens up and I want to be able to start typing in a select textbox without having to first use the mouse to click on the textbox to select it.
I have had a quick look but couldn't get it to work.
Any ideas??
Thanks
Ben
Don't worry about it.
I was trying to set the setfocus property from the wrong place.
Ben
SetFocus seems to work to get the cursor there.
My question. Can I "select" any TEXT that is already there automatically. Setfocus gets you there but I want to have the text selected... (as if I tabbed into the field)
Anyway to do that?
I tried a few differnet things but none of them got the desired effect. Sorry I couldn't help you
Thanks for the effort ben, just found the answer today.
' set focus to the text field and highlight it
Me.txtField1.SetFocus
Me.txtField1.SelStart = 0
Me.txtField1.SelLength = Len(Me.txtField1.Text)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks