OK, we know that for colors, Access used things like vbYellow, vbRed, vbBlue, etc..
WBUT, I have my own custom colors that I have represented here as RGB statements.
Private Sub SaleDate_GotFocus()
Me.SaleDate.BackColor = RGB(133, 258, 375)
End Sub
Private Sub SaleDate_LostFocus()
Me.SaleDate.BackColor = RGB(166, 166, 166)
End Sub
NOTE: For the RGB #'s I put in this example, I just keyed in random numbers for the sake of demonstrating for you what is going on!
What I would like to be able to do is replace the RGB(133, 258, 375) part of the statement with a word, just like the other vbYellow, vbRed, vbBlue that I can use. Here, check this out!
Private Sub SaleDate_GotFocus()
Me.SaleDate.BackColor = MyCustomColor1
End Sub
Private Sub SaleDate_LostFocus()
Me.SaleDate.BackColor = MyCustomClor2
End Sub
I just like how when the code is written that the word of the color is used in the actual code itself vs the RGB code.
So, please ... what to I do to define the RGB part of the command line?
Much thanks,
-Steven
WBUT, I have my own custom colors that I have represented here as RGB statements.
Private Sub SaleDate_GotFocus()
Me.SaleDate.BackColor = RGB(133, 258, 375)
End Sub
Private Sub SaleDate_LostFocus()
Me.SaleDate.BackColor = RGB(166, 166, 166)
End Sub
NOTE: For the RGB #'s I put in this example, I just keyed in random numbers for the sake of demonstrating for you what is going on!
What I would like to be able to do is replace the RGB(133, 258, 375) part of the statement with a word, just like the other vbYellow, vbRed, vbBlue that I can use. Here, check this out!
Private Sub SaleDate_GotFocus()
Me.SaleDate.BackColor = MyCustomColor1
End Sub
Private Sub SaleDate_LostFocus()
Me.SaleDate.BackColor = MyCustomClor2
End Sub
I just like how when the code is written that the word of the color is used in the actual code itself vs the RGB code.
So, please ... what to I do to define the RGB part of the command line?
Much thanks,
-Steven