Results 1 to 2 of 2

Thread: PreviousControl

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

    Question Unanswered: PreviousControl

    If I ask for a previousControl on a Form through Screen.PreviousControl I get it with no errors, but if I ask for a PreviousControl on a subForm for Example a TextBox I get the name of the Subform, so how coud I get the name of the TextBox instead?

    Thanks

  2. #2
    Join Date
    Oct 2003
    Location
    US
    Posts
    343

    Re: PreviousControl

    No, screen object work on the form iteself, while subform is just another control on the main form. So whenever you are in the subform and try the screen.previouscontrol, the name of the sub form will be returned because it was the last control on the main form to receive focus.


    Originally posted by hammbakka
    If I ask for a previousControl on a Form through Screen.PreviousControl I get it with no errors, but if I ask for a PreviousControl on a subForm for Example a TextBox I get the name of the Subform, so how coud I get the name of the TextBox instead?

    Thanks

Posting Permissions

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