Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Aug 2001
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Opening up a form (2000)

    I am opening up a form but when it opens it starts off in the wrong text box. What is the code to control where the cursor will begin on a form?

  2. #2
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Newbury, Berkshire, England
    Posts
    712
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form Tab order

    Open your form in design view

    Right click on the button to the far left of the ruler

    You should see a

  3. #3
    Star Lounger
    Join Date
    May 2001
    Location
    Ventura, California, USA
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Form Tab order

    Setting the tab order is the best way to do what you sound like you're trying to achieve.

    If you need to change the tab order dynamically, using code, then use:
    Me!Control.TabIndex = #
    where # is an integer representing the index number, starting with 0 (zero) for the first tab; and Control is the name of your control.

    If you want a particular control to have the focus, outside of whatever the established tab order may be, then use
    Me!Control.SetFocus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •