Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2004
    Posts
    86

    Unanswered: Move focus of Form

    Hi, I have a sub form, and it has vertical scroll bars,
    The form contains three sections, and within each is a number of comboboxes

    What i would like is for when the last check box is clicked for the focus to move to the next section or location on the form by moving the vertical bar

    can anyone suggest a way?

    thank you

  2. #2
    Join Date
    Sep 2004
    Location
    Raleigh, NC
    Posts
    146
    I don't know for sure that this is the best (or even correct method), but beleive if you add the following code to the AfterUpdate property of your control, you can "jump" to the next control.

    Private Sub ObjectA_AfterUpdate()
    ObjectB.SetFocus
    End Sub


    ObjectA = Last control in the first set of options
    ObjectB = First control in the next set of options

    HTH

Posting Permissions

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