I like ot have my screen backgroun color stored (and set) in a module that is referened by all screens in the Form Load event. This way if the user changes their mind or I want to change the backgroun color of all screens I do it in one place.
Since I am using code to set the color I must specify the corresponding color with numbers, such as:
Public Const cFormBackcolor As Long = 15784923 'pale blue
I know that vbRed, vbBlack etc.. can be used but the user will usually specify something more custom. Is there any way to detrmine the numerical equivalent of a color? I'm guessing the numbers somehow break down into a red, green and blue component. Can I create a color in the custom pallette of the color selector and soemhow know what number corresponds to that color?
Private Sub Form_Load()Update_Form_Controls MeEnd Sub
Basically, you can specify any RGB colour in hex form by using 0xBBGGRR. If you are familiar with HTML colouring system, you can use the attached code to convert between the two.
Database MX has the most direct and easy to implement solution.
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Note: Any custom color created in the pallet is only good for the Access session you are in. Once you close Access and re-open ... those custom colors are gone from the list in the Pallet (but not on a Form/Report)
Red Grn Blue
000, 000, 000
The bigger the number in that group, the more of that color.
You can get a break down here: http://www.december.com/html/spec/colordec.html