Hi,
I would like to know how to use this
Where do i put in the form VBA? OnCurrent it does not work or i do something wrong.
thanks
I would like to know how to use this
Code:
Dim ctlCurrentControl As Control
Set ctlCurrentControl = Screen.ActiveControl
If ctlCurrentControl.Name = "txtCustomerID" Then
.
. ' Do something here.
.
ElseIf ctlCurrentControl.Name = "btnCustomerDetails" Then
.
. ' Do something here.
.
End If
thanks