neill_hucklesby
New member
- Local time
- Today, 02:19
- Joined
- Sep 19, 2006
- Messages
- 2
Help?
Trying to change the background colour of a text box, depending on its value.
e.g. If Girl show pink, if Blue show Blue.
I have managed to do this with the following code;
If Me!Sex = "f" Then
Me!YP.BackColor = 13408767
Else
Me!YP.BackColor = 16737843
End If
But I can only do this for all the records in the detail section, and not on a record by record basis.
Any ideas?
Neill
Trying to change the background colour of a text box, depending on its value.
e.g. If Girl show pink, if Blue show Blue.
I have managed to do this with the following code;
If Me!Sex = "f" Then
Me!YP.BackColor = 13408767
Else
Me!YP.BackColor = 16737843
End If
But I can only do this for all the records in the detail section, and not on a record by record basis.
Any ideas?
Neill