• OnFocus Event (A2K SR1)

    Author
    Topic
    #371762

    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.

    Viewing 0 reply threads
    Author
    Replies
    • #591972

      I think you should be able to do something with Screen.ActiveForm.Name
      If Screen.ActiveForm.Name = “frmA” Then …

    Viewing 0 reply threads
    Reply To: OnFocus Event (A2K SR1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: