Timer event on switchboard

M

Mark

Hi all,

On my switchboard, I would like to have a label flash red
and black colors if there are records that are not
timeliness, but since the switchboard's default view is
a "Continuous" form. I am not allowed to place a subform
here. (the subform is based off of a query that pulls any
records where the field "timeliness" is equal to "No") I
can get the flashing warning sign to work if the
switchboard is Not a continuous form, but that is not my
solution. Any suggestions on getting around this
situation? Thanks a bunch!!!!



Below is the code that I used to get this to work (not on
the continuous form):


Private Sub Form_Open(Cancel As Integer)

If Me!
[subformAssessmentNotTimeliness].Form.RecordsetClone.Record
Count > 0 Then
Me.Timeliness.Visible = True
Me.TimerInterval = 300
Else
Me.TimerInterval = 0
Me.Timeliness.ForeColor = vbBlack
End If

End Sub



Private Sub Form_Timer()

With Me.Timeliness
.ForeColor = (IIf(.ForeColor = vbRed, vbBlack, vbRed))
End With

End Sub
 
W

Wayne Morgan

Have you tried a form header or form footer and place your label there? You
should find these under the View menu with the form open in design mode.
 

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

Similar Threads

Timer gettin complicated! 4
hh:mm:ss on a timer 2
'Flashing' data 8
Switchboard problem 2
dcount issue 2
Conditional Formatting 3
Problem with Toggle Button. 10
ON FORM ACTIVATE 1

Top