Selecting a Control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cutch1
    New Member
    • Jun 2007
    • 4

    #1

    Selecting a Control

    I got a quick question.

    Basicly after pressing a button i want to select a textbox so i can type in it, without clicking to mouse on the textbox.

    Is it possible to select the textbox through a code like:

    NOT REAL CODE:
    Me.Textbox1.sel ect()
    or
    Me.tabindex = Textbox1.tabind ex

    or is their some other code to do it.

    Please help me out

    Cutch1
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Yes. The SetFocus method is what you're looking for.

    Comment

    • Cutch1
      New Member
      • Jun 2007
      • 4

      #3
      Thanks a bunch, i don't no how i missed that, i looked through everything.

      Cutch1

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by Cutch1
        Thanks a bunch, i don't no how i missed that, i looked through everything.
        I wouldn't be too concerned. As with most of this stuff, it seems obvious once you know the right terminology. But can be very obscure until then. If you had been thinking about "focus" you probably would have found it easily.

        Comment

        Working...