Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2004
    Location
    Terrapin Nation
    Posts
    205

    Unanswered: Determining Focus

    I have a subform with 5-6 controls on it. When the focus leaves teh subform I want to figure out which control on the subform had the focus so that when the focus moves back to the subform, the control which previously had the focus will not have it upon return. Any ideas?

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Maybe use the OnExit event to dump a control name into a variable?

    dunno...
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

  3. #3
    Join Date
    Jun 2004
    Location
    Terrapin Nation
    Posts
    205
    That would work, only thing that is a pain would be if you had a ton of controls. I am surprised there isnt something built in, like HasFocus or something.

  4. #4
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1

    Lightbulb

    Try to use Screen.PreviousControl it would function, but with Subform I think it is more difficult. Just try

Posting Permissions

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