ccondran08
Registered User.
- Local time
- Today, 13:28
- Joined
- Feb 27, 2014
- Messages
- 58
I have just watched this youtube video clip https://www.youtube.com/watch?v=fe5D4iK0Pvk& in the search for the answer for my problem. This video clip shows you how to loop through all the controls (text boxes) on a form and find the blank control fields and highlight them red and alert with a message box.
For Each ctrl In Me.Controls
If ctrl.Tag = "FILL" Then
If IsNull (ctrl) Or Len (ctrl) = 0 Then
ctrl.BackColour = vbRed
CheckForEmpty = False
End If
Next
However, what I am looking for is a solution that will loop through a certain field in a subform datasheet recordset (query) and highlight in red where there is a blank field and also prompt a message box to alert the user that there are blank fields. I appreciate any help.
For Each ctrl In Me.Controls
If ctrl.Tag = "FILL" Then
If IsNull (ctrl) Or Len (ctrl) = 0 Then
ctrl.BackColour = vbRed
CheckForEmpty = False
End If
Next
However, what I am looking for is a solution that will loop through a certain field in a subform datasheet recordset (query) and highlight in red where there is a blank field and also prompt a message box to alert the user that there are blank fields. I appreciate any help.