Dick7Access
Dick S
- Local time
- Today, 16:32
- Joined
- Jun 9, 2009
- Messages
- 4,306
I want to change the border width and the border color., on certain fields when they have the focus. I can do it by inserting this code
In each got focus event, but instead I want to use a variable, and just insert the variable. I have done this before but can’t remember how I did it.
This is what I have now
And inserting just “Highlight” at each field got focus
It is not working, what am I doing wrong? I have been try different combinations for hours
Code:
txtchurch.BorderWidth = 2
txtchurch.BorderColor = vbRed
This is what I have now
Code:
Dim Highlight As String
.Highlight = BorderWidth = 2
.BorderColor = vbRed
It is not working, what am I doing wrong? I have been try different combinations for hours