I have a Lost focus event that I want to cancel if the user selects either cmdDeleteRecord button or cmdSaveRecord button. I looked at thread705-1014088, but the "name" part of this reference wasn't available to me.
At the beginning of the Lost Focus event, I wanted to do:
Maybe I need an additional reference? I don't know what I need. It won't let me use "name".
Thanks in advance.
MrsBean
At the beginning of the Lost Focus event, I wanted to do:
Code:
If Me.ActiveControl.name = "cmdDeleteRecord" or Me.ActiveControl.name = "cmdSaveRecord" Then
Exit Sub
End If
Maybe I need an additional reference? I don't know what I need. It won't let me use "name".
Thanks in advance.
MrsBean