rikklaney1
Registered User.
- Local time
- Today, 03:41
- Joined
- Nov 20, 2014
- Messages
- 157
a question about color coding a form. I have used this before
If Me.Text27.Value = "t" Then Me.Text27.ForeColor = 858083
If Me.Text27.Value = "p" Then Me.Text27.ForeColor = 55295
If Me.Text27.Value = "u" Then Me.Text27.ForeColor = 15643136
now the question.. is it possible to set a value for all the text boxes on the form with a single code block? Something like
If Me.Text*.Value = "t" Then Me.Text*.ForeColor = 858083
If Me.Text*.Value = "p" Then Me.Text*.ForeColor = 55295
If Me.Text*.Value = "u" Then Me.Text*.ForeColor = 15643136
If Me.Text27.Value = "t" Then Me.Text27.ForeColor = 858083
If Me.Text27.Value = "p" Then Me.Text27.ForeColor = 55295
If Me.Text27.Value = "u" Then Me.Text27.ForeColor = 15643136
now the question.. is it possible to set a value for all the text boxes on the form with a single code block? Something like
If Me.Text*.Value = "t" Then Me.Text*.ForeColor = 858083
If Me.Text*.Value = "p" Then Me.Text*.ForeColor = 55295
If Me.Text*.Value = "u" Then Me.Text*.ForeColor = 15643136