Forms timer

G

Guest

I am trying to have my text blink with the following:

Private Sub Form_Timer()
Me.VendorName.Visible = Not Me.VendorName.Visible
End Sub

I try hiding fields which works untill i get to one control (does not have
the name VendorName) and i receive a runtime error--cannot hide control which
has focus. Is there a way around this?
 
M

Marshall Barton

acss said:
I am trying to have my text blink with the following:

Private Sub Form_Timer()
Me.VendorName.Visible = Not Me.VendorName.Visible
End Sub

I try hiding fields which works untill i get to one control (does not have
the name VendorName) and i receive a runtime error--cannot hide control which
has focus. Is there a way around this?


Set the focus to a control that doesn't blink or change
backcolor instead of visible.
 

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

Top