Text Effects

N

NoviceIan

Hi,

Bit of a long shot but I was wondering if it is possible to add effects to
text on forms in Access. By effects I mean similar to websites; flashing or
scrolling text for example.

Not hugely important but thought I'd ask. Be grateful for any information
on this. Many thanks.
 
B

BruceM

This describes how to achieve a blinking effect:
http://www.mvps.org/access/forms/frm0020.htm

Be very careful, though. This sort of thing can drive users nuts. They
will come for you with torches and pitchforks, and you will have to find
somebody who does not use the database and is willing to hide you. If you
want to call attention to something by having a label flash, say, three
times you could do this:

Me.TimerInterval = 500
Static intCounter As Integer
intCounter = intCounter + 1
Me.LabelName.Visible = Not Me.LabelName.Visible
If intCounter >= 3 Then
Me.TimerInterval = 0
Me.LabelName.Visible = True
intCounter = 0
End If

The code is something I found through a Google search a while ago. I would
give credit if I had remembered to record the source of the information.

Note that this changes the label's Visible property, but can be used to
change the backcolor, etc. Visible is either Yes or No, so you can use the
Not syntax as posted. In the case of something like backcolor that isn't a
Yes or No you would need a bit more code, something like this in place of
the line of code with Not in it:

If Me.LabelName.BackColor = vbWhite Then
Me.LabelName.BackColor = vbYellow
Else
Me.LabelName.BackColor = vbWhite
End If
 

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