J
Jeff Conrad
Hi,
Using Access 97 here.
I'm getting strange results with trying to use a Mouse
Move event on the built-in Access Switchboard Manager.
I have tried on four different computers with three
different operating systems and getting mixed results.
Basically all I want to do is have the fore color of the
labels on the Switchboard change as the mouse is passed
over them for visual effect.
Steps to reproduce:
1. Create a new blank database.
2. Launch the Switchboard Manager and have it create a
form and table.
3. In the Wizard just create some dummy options so you'll
have more than one label appear when the form opens.
4. Change the Fore Color of each label to 6184448.
5. In the MouseMove event of the DETAIL section use this
code:
Dim i As Integer
On Error Resume Next
For i = 1 To 8
Me("OptionLabel" & i).ForeColor = 6184448
If Err <> 0 Then
Err.Clear
Exit For
End If
Next i
6. In EACH MouseMove event of the individual labels use
code like this:
Me.OptionLabel1.ForeColor = 16777215
Change the control name of course for each label.
The BEST result I've seen is ONLY the first label changing
color as I move the mouse around! Sometimes nothing
changes! I've even tried various coding options, but still
only the first label changes color. I've even tried to
move the mouse around really slowly, but no difference. I
also tried changing the fore color of each label in Design
View to either color and same result.
I even tried this code instead in the Detail MouseMove
event:
Me.OptionLabel1.ForeColor = 6184448
Me.OptionLabel2.ForeColor = 6184448
Me.OptionLabel3.ForeColor = 6184448
Me.OptionLabel4.ForeColor = 6184448
Me.OptionLabel5.ForeColor = 6184448
Me.OptionLabel6.ForeColor = 6184448
Me.OptionLabel7.ForeColor = 6184448
Me.OptionLabel8.ForeColor = 6184448
No change at all.
Does the same thing happen for you?
Am I coding this wrong? (more likely)
Thanks for any help,
Jeff Conrad
Bend, Oregon
Using Access 97 here.
I'm getting strange results with trying to use a Mouse
Move event on the built-in Access Switchboard Manager.
I have tried on four different computers with three
different operating systems and getting mixed results.
Basically all I want to do is have the fore color of the
labels on the Switchboard change as the mouse is passed
over them for visual effect.
Steps to reproduce:
1. Create a new blank database.
2. Launch the Switchboard Manager and have it create a
form and table.
3. In the Wizard just create some dummy options so you'll
have more than one label appear when the form opens.
4. Change the Fore Color of each label to 6184448.
5. In the MouseMove event of the DETAIL section use this
code:
Dim i As Integer
On Error Resume Next
For i = 1 To 8
Me("OptionLabel" & i).ForeColor = 6184448
If Err <> 0 Then
Err.Clear
Exit For
End If
Next i
6. In EACH MouseMove event of the individual labels use
code like this:
Me.OptionLabel1.ForeColor = 16777215
Change the control name of course for each label.
The BEST result I've seen is ONLY the first label changing
color as I move the mouse around! Sometimes nothing
changes! I've even tried various coding options, but still
only the first label changes color. I've even tried to
move the mouse around really slowly, but no difference. I
also tried changing the fore color of each label in Design
View to either color and same result.
I even tried this code instead in the Detail MouseMove
event:
Me.OptionLabel1.ForeColor = 6184448
Me.OptionLabel2.ForeColor = 6184448
Me.OptionLabel3.ForeColor = 6184448
Me.OptionLabel4.ForeColor = 6184448
Me.OptionLabel5.ForeColor = 6184448
Me.OptionLabel6.ForeColor = 6184448
Me.OptionLabel7.ForeColor = 6184448
Me.OptionLabel8.ForeColor = 6184448
No change at all.
Does the same thing happen for you?
Am I coding this wrong? (more likely)
Thanks for any help,
Jeff Conrad
Bend, Oregon