Combobox Lostfocus problem

I have a combobox and am using the lostfocus to prompt for saving,but
don't want the lost focus to prompt for saving if the user clicks the save button.
How can this be done ?
isnoend2001Asked:
Who is Participating?
 
Martin LissOlder than dirtCommented:
In other words.

Private Sub Combo1_LostFocus()
If Screen.ActiveControl.Name <> "Command1" Then
    ' Do save processing
End If
End Sub

Open in new window

0
 
Martin LissOlder than dirtCommented:
If Screen.ActiveControl.Name = "blah" Then
    ' Do something (or don't do something)
End If

Open in new window

0
 
isnoend2001Author Commented:
Thanks works perfect MartinLiss
0
 
Martin LissOlder than dirtCommented:
You're welcome.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.