I have this generel sub to flashing of a control on a form ,,, flash in a specific color:
but there is NO Forecolor property !
How do I do that ?
Code:
Sub FlashCtrl(OnOff As Boolean, frm As Form, Ctl As Control, Optional flashColor As Long)
If OnOff = False Then
frm.TimerInterval = 0
frm.Controls(Ctl.Name).Visible = False
Else
If Not ((frm.Controls(Ctl.Name).ControlType = acTextBox) _
Or (frm.Controls(Ctl.Name).ControlType = acCommandButton) _
Or (frm.Controls(Ctl.Name).ControlType = acLabel)) Then Exit Sub
With Ctl
' Here the flashColor should be defined
.Forecolor <<<<<<<<<<<<<<<<<<<<<<<<<<<<< NO Forecolor !!
.Visible = True
End With
frm.TimerInterval = 500
End If
End Sub
but there is NO Forecolor property !
How do I do that ?