BarryMK
4 strings are enough
- Local time
- Today, 03:23
- Joined
- Oct 15, 2002
- Messages
- 1,350
I am currently placing the following simple error message in the on click event of several text boxes on a form. (Users cannot edit any field with a blue background).
Private Sub txt4_Click()
MsgBox "You do not have permission to edit blue fields ", vbInformation, "User error"
End Sub
I was wondering if there is a neater/better way to do this, such as placing one piece of code on the form which covers all the text boxes which have a blue background or some other unique attribute?
Private Sub txt4_Click()
MsgBox "You do not have permission to edit blue fields ", vbInformation, "User error"
End Sub
I was wondering if there is a neater/better way to do this, such as placing one piece of code on the form which covers all the text boxes which have a blue background or some other unique attribute?