Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Frederick, Maryland, USA
    Posts
    296
    Thanks
    0
    Thanked 0 Times in 0 Posts

    OnFocus Event (A2K SR1)

    Can I use form focus as an argument in an If statement? That is, can I say "If frmA has the Focus, Then B, ElseIf frmC has the Focus, then D, etc."? I've looked for the syntax and just can't find it. Thanks.

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: OnFocus Event (A2K SR1)

    I think you should be able to do something with Screen.ActiveForm.Name
    If Screen.ActiveForm.Name = "frmA" Then ...
    Francois

Posting Permissions

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