What are numbers of the default gray colors?

  • Thread starter Thread starter David
  • Start date Start date
D

David

What are the numbers to enter for the default dark and
light gray colors. I need to change a background color and
cannot find this information anywhere?
 
David said:
What are the numbers to enter for the default dark and
light gray colors. I need to change a background color and
cannot find this information anywhere?
David,
To find the number value of any color, change the color of any access
object to that color, i.e. change a control backcolor to that color.
Read the color number from the control's backcolor property.
That's it!!
To change the control's color back to what it was, do not save the
change.
 
Perhaps you are after the Windows system colours? Go into Help and type
system colors in the Answer wizard

light gray -2147483633
dark gray -2147483645
 
Sounds good but it does not help me at all. How am I
supposed to change the color to a custom color when I dont
know what the custom color is? The color is not in the
standard colors otherwise I would not have asked the
question.
 
David said:
Sounds good but it does not help me at all. How am I
supposed to change the color to a custom color when I dont
know what the custom color is? The color is not in the
standard colors otherwise I would not have asked the
question.
David,
Perhaps if you re-read your original post you will see that you did NOT
ask how to get a custom color value. You asked how to get some default
color value. As the colors are dependent upon how your version of Access
and your system is set up, I gave you a means to do so.

Now you are asking a different question.
How to get a custom color value?
Do you know how to make the custom color?
Click on any control's color property.
Let's say the BackColor property.
Click on the button with the 3 dots that appears on that line.
The Color chart will appear.
Select one of the square boxes (one you are willing to change).
Click on Define Custom Color.
Make the color using the Color Tool.
Click 'Add to Custom Colors' to save the color.
Exit.
Now click again on that color property line and select the new color
from the drop-down box.
The value entered in that line is the number value of that color.
Copy the number and paste it into whatever control you wish.
 
Back
Top