Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access thread: Flashing Dot


Message #1 by "KennethMungwira" <KennethMungwira@Y...> on Thu, 28 Mar 2002 19:34:41
Dear Sir or Madam,

I have a diagram on a form which I would like to have a flashing dot 
placed on it. Does anyone know how to do this?

Thank you
Message #2 by "Gregory Serrano" <SerranoG@m...> on Fri, 29 Mar 2002 13:27:16
Kenneth,

<< I have a diagram on a form which I would like to have a flashing dot 
placed on it. Does anyone know how to do this? >>

&#8729; Place an image of a dot on your diagram.

&#8729; Set the form's "On Timer" event to, say, 1000 (less if you want faster 
flashing, more if you want slower flashing).

&#8729; On the form's "On Open" event put this:

   Me.[Image Name].Visible = (Timer MOD 2 = 0)

If the flashing only occurs for certain values in a text box, for example, 
then don't put the code for the "On Open" event.  Instead, put this on the 
form's "On Current" Event and in the text box's "On Update" event:

   If Me.[Text Box Name] = {desired value} Then
      Me.[Image Name].Visible = (Timer MOD 2 = 0)
   Else
      Me.[Image Name].Visible = False
   End If

Greg

  Return to Index