flashing labels

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

Question, I currently have a checkbox with a label set to
flash whenever the checkbox is checked, what I want is for
the label to stop flashing when I move on to the next
record. As of right now my label continously flashes on
all records once I click on the checkbox. Here is my
current code;

Private Sub chkboxCALLBACK_Click()
If chkboxCALLBACK = True Then
Me.Label56.Visible = False
Me.Label53.Visible = True
Else
If chkboxCALLBACK = False Then
Me.Label56.Visible = True
Me.Label53.Visible = False
End If
End If
End Sub

your help is appreciated
 
Martin said:
Question, I currently have a checkbox with a label set to
flash whenever the checkbox is checked, what I want is for
the label to stop flashing when I move on to the next
record. As of right now my label continously flashes on
all records once I click on the checkbox. Here is my
current code;

Private Sub chkboxCALLBACK_Click()
If chkboxCALLBACK = True Then
Me.Label56.Visible = False
Me.Label53.Visible = True
Else
If chkboxCALLBACK = False Then
Me.Label56.Visible = True
Me.Label53.Visible = False
End If
End If
End Sub

your help is appreciated

I don't see how this code alone is going to make *any* label flash. Do
you also have code in the form's Timer event that is making the label
flash?

Regardless, if this code is on a continuous form I don't think you're
going to find it easy to make the label flash on just the current
record. That's because there is really only one of each control in the
form's detail section; it's just drawn multiple times on the screen.
So when you modify the label's properties at run time to make it flash,
you're doing that for all the images of the control that are drawn on
the screen. Conditional formatting was introduced to handle the problem
of individual formatting of controls on continuous forms, but there's no
direct support for controlling visibility. I suppose you could do
something involving a text box instead of a label, and making the
forecolor match the backcolor except when the required circumstances
obtain. I haven't tried anything like this, though.
 
Back
Top