S
Stapes
Hi
I am trying to run the following code & am getting the error message
shown above. The code is triggered by entering a value in any field on
my screen.
Private Function UpdateTariff()
On Error GoTo Err_UpdateTariff
Dim ctl As Control
Dim strControlName As String
ctl = Screen.ActiveControl
strControlName = ctl.Name
MsgBox strControlName
Exit_UpdateTariff:
Exit Function
Err_UpdateTariff:
MsgBox Err.Number & " " & Err.Description
Resume Exit_UpdateTariff
End Function
Any idea why it is not working?
Stapes
I am trying to run the following code & am getting the error message
shown above. The code is triggered by entering a value in any field on
my screen.
Private Function UpdateTariff()
On Error GoTo Err_UpdateTariff
Dim ctl As Control
Dim strControlName As String
ctl = Screen.ActiveControl
strControlName = ctl.Name
MsgBox strControlName
Exit_UpdateTariff:
Exit Function
Err_UpdateTariff:
MsgBox Err.Number & " " & Err.Description
Resume Exit_UpdateTariff
End Function
Any idea why it is not working?
Stapes