Not sure I'm understanding you?
I think this is what your asking for.
If you place your mouse over any label -
The caption will change color...
When you move off the label -
The caption returns back to the default color.
If this is correct, then Paste this code into the forms VBE window. Add the rest of your labels in the Detail_MouseMove Sub just like the 3 I added.
Code:
Private Function LabelMouseDown(strLabelName As String)
On Error Resume Next
With Me.Controls(strLabelName)
.SpecialEffect = 2 'Sunken
End With
End Function
Private Function LabelMouseMove(strLabelName As String)
On Error Resume Next
With Me.Controls(strLabelName)
.SpecialEffect = 1 'Raised
.ForeColor = 16711680 'Light Blue
End With
End Function
Private Sub Detail_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
me.applicants.SpecialEffect = 0 'Flat
me.applicants.ForeColor = 0 'Black
me.Benefits.SpecialEffect = 0 'Flat
me.Benefits.ForeColor = 0 'Black
me.contacts.SpecialEffect = 0 'Flat
me.contacts.ForeColor = 0 'Black
...
... For every label you want to change
...
...
End Sub
Now open the form in design view.
Right click a label,choose properties
Locate the Label Name; we'll use lblApplicants for the 1st one as an example.
Next, Locate the On Mouse Move and On Mouse Down Event
Type or paste these into the correct events...
=LabelMouseMove("lblApplicants")
=LabelMouseDown("lblApplicants")
Make sure you include the equal sign!
Repeat this for each label on the form, replacing "lblApplicants" with the correct label name.
That's it...
The sound really isn't that hard to add-in, I would change it to the MouseDown Event, if you put it into use. Keep in mind, play quick sound files, nothing to long.
Let me know what you think about the label effect, once you get it in place. I think you'll like it!
AccessGuruCarl
Programmers helping programmers
you can't find a better site.