Hi, I'm trying to get the ID of a form control that has the current focus. It seemed to me the AddEvent in combination with the Sender function would do the trick, but it doesn't seem to work when I try the example in the help.
Here's the code:
Sub App_Start
AddEvent("cbShipName", Click, "FieldGotFocus")
End Sub
FieldGotFocus
Msgbox(Sender)
End Sub
Anyone have any ideas? Do I have to add a library or something like that?
Tks, AB :sign0161:
Here's the code:
Sub App_Start
AddEvent("cbShipName", Click, "FieldGotFocus")
End Sub
FieldGotFocus
Msgbox(Sender)
End Sub
Anyone have any ideas? Do I have to add a library or something like that?
Tks, AB :sign0161: