How to capture LostFocus

S

Scientific

Hi,

I want to be able to set the visible property on a lable to false when a
control looses the focus. For example, when my combo named cboFirstName
looses focus I want to make the visible property on my label "lblDetails."
equal to false in the same module. What do I need to add to the code below:

Private Sub cboFirstName_GotFocus()
Me.lblDetails.Visible = true

End Sub
 
L

Linq Adams via AccessMonster.com

Private Sub cboFirstName_LostFocus()
Me.lblDetails.Visible = False
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top