Re: Convert color codes
- From: Marshall Barton <marshbarton@xxxxxxxxxx>
- Date: Mon, 10 Dec 2007 14:22:51 -0600
XP wrote:
Using Office 2003 and Windows XP;
Suppose I have color code: #C5C2B9
How can I convert the above code to a value that can be used in MS-Access
for the background color of a control?
You can do it manually in the Immediate window:
?CLng(&HC5C2B9)
If you have a text field or a string variable with the Hex
number, then use:
lngColor = CLng("&H" & strHex)
--
Marsh
MVP [MS Access]
.
- Prev by Date: Re: Indirect reference to tex boxes in a form
- Next by Date: Re: Combo Boxes
- Previous by thread: Re: Indirect reference to tex boxes in a form
- Next by thread: Re: Can Access progarm be downloaded and used with machine with no
- Index(es):
Relevant Pages
|