- Local time
- Yesterday, 21:10
- Joined
- Feb 19, 2002
- Messages
- 45,908
I want to change the color of the border of a button if the form the button opens has data to show. Using the theme name of the color doesn't work. Am I going to have to figure out what the numeric value is and hard code that????? That makes the themes pretty useless.
Code:
If DCount("*", "tblGifts", "ContID = " & Me.ContID) > 0 Then
Me.cmdGifts.BorderColor = "Accent 1, Darker 25%"
Else
Me.cmdGifts.BorderColor = "Accent 6"
End If