Results 1 to 3 of 3

Thread: First arrival

  1. #1
    Join Date
    Sep 2005
    Posts
    313

    Unanswered: First arrival

    Hi:

    In VB Code,

    when I open the form, I want to go that box automatically.
    What command code can I need writes?

  2. #2
    Join Date
    Apr 2004
    Location
    outside the rim
    Posts
    1,011
    ControlName.SetFocus

  3. #3
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    ... probably in the forms on load, on current or on activate events. some events will not allow the focus tobe changed, offhand I'm not sure you can do this in the on load, but I'm pretty certain you can within the on activate, anbd certainly can in the on current.

    A word of acution if you have soem validation code on anothers lost focus event you can have problems with 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
  •