Form Color Questions

A

access_hack

1) I noticed that when I attempt to control the colors of forms ...
Me.Section(acDetail).BackColor = &SomeHex ... where &SomeHex is the exact
same value I copied from the forms back color property when I selected that
color do not work. Does anyone know if there is a list of 'hex safe' colors?
(I would like to stay in hex for ease of porting a web front end.)

2) Maybe it is just my machine, but the translation provided by Windows
Calculator (Hex -> Dec) does not give me the exact same color (I went this
method just to complete the site design and mock-up). Any thoughts on why,
after 'translation', my colors are a few tones/shades darker?

Thanks in advance,
-dK
 
M

Marshall Barton

access_hack said:
1) I noticed that when I attempt to control the colors of forms ...
Me.Section(acDetail).BackColor = &SomeHex ... where &SomeHex is the exact
same value I copied from the forms back color property when I selected that
color do not work. Does anyone know if there is a list of 'hex safe' colors?
(I would like to stay in hex for ease of porting a web front end.)

2) Maybe it is just my machine, but the translation provided by Windows
Calculator (Hex -> Dec) does not give me the exact same color (I went this
method just to complete the site design and mock-up). Any thoughts on why,
after 'translation', my colors are a few tones/shades darker?


You didn't forget to use H in the value?
E.g. blue would be specified as:
&HFF0000

Note 1. If the color you copied has a minus sign, it is a
system color code, not an RGB color value.

Note 2. You can convert a decimal number to hex in the
immediate window:
?Hex(16711680)
FF0000
 

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