|
Home > Archive > MS Access database support > February 2006 > How to set a background color with certain HEX, DEC or RGB value?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to set a background color with certain HEX, DEC or RGB value?
|
|
| AA Arens 2006-02-18, 9:23 am |
| I have a HEX, DEC and RGB value of the color I want for my form
background. How to set it, as I am only able to use one of the standard
colors.
Bart
(v 2003)
| |
| Randy Harris 2006-02-18, 11:23 am |
|
"AA Arens" <bartvandongen@gmail.com> wrote in message
news:1140260841.722355.159050@g43g2000cwa.googlegroups.com...
> I have a HEX, DEC and RGB value of the color I want for my form
> background. How to set it, as I am only able to use one of the standard
> colors.
>
> Bart
> (v 2003)
>
Me.Detail.BackColor = RGB(120, 180, 180)
Me.Detail.BackColor = &H60A0A0
Me.Detail.BackColor = 11842680
?rgb(120,180,180)
11842680
?vbgreen
65280
HTH -
--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.
| |
| AA Arens 2006-02-18, 8:24 pm |
| Thanks Randy it works with:
Private Sub Form_Current()
Me.Detail.BackColor = RGB(50, 170, 245)
End Sub.
I do have forms with header and footer forms. How to get them also the
right color with Me.Detail.BackColor?
But the header/footer has no "Current"
I put the Me.Detail.BackColor = RGB(120, 180, 180) command in Form
|
|
|
|
|