Hello, for the Change event of Control2 on my form, it is important to know whether the control that was last in focus was Control1. Based on this, Change of Control2 will do certain calculations. Will doing this:
always simply set prevCtl to Control2 since it's the control that has focus right now?
Thank you.
PHP:
Dim prevCtl As Control
Set prevCtl = Screen.PreviousControl
If prevCtl.Name = "Control1" Then
'do something
Else
'do something else
End If
always simply set prevCtl to Control2 since it's the control that has focus right now?
Thank you.