Access Number for Colors, ?

  • Thread starter Thread starter Dave Elliott
  • Start date Start date
D

Dave Elliott

BlankI want to change the color of a label. How can I find out the Number
that Access uses for each color ?
Red is 255 I believe and so on.
I use a flashing label and want it to alternate colors or at least be able
to change the set color.
I use this code to flash the label.
With Text28
.ForeColor = (IIf(.ForeColor = 0, 255, 0))

End With

--


---------------------------------------------------------------------
This email and any files transmitted with it from Dave Elliott are
confidential and intended solely for the
use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the
sender.
All Mail is pre-scanned with Norton Antivirus 2004 for your protection.

http://[email protected]
 
Dave said:
BlankI want to change the color of a label. How can I find out the Number
that Access uses for each color ?
Red is 255 I believe and so on.
I use a flashing label and want it to alternate colors or at least be able
to change the set color.
I use this code to flash the label.
With Text28
.ForeColor = (IIf(.ForeColor = 0, 255, 0))

End With

Easiest way to determine an Access color number is to set a control's
color, using the color drop-down tool button , to the color you want.
Then check the property sheet for that property's color. (i.e. 10040115,
16711680, and 16737843 are blues of varying shades.)
If your color drop-down doesn't display the exact color you want, make
your own. Click on any color property, then click on the button with the
3 dots that will appear on that line. Select Define Custome Colors. Make
the color you want. Save it to one of the color squares. Set the control
property to that color. Copy down the color number. Now you can use it
in code.
 
Back
Top