M
mattc66 via AccessMonster.com
Hi All,
I have an Order Form that I want to perform a check on the data when the user
selects a Check Box.
I had the following in the onClick Event of the check box. This doesn't work.
It blows by them and displays an empty message box.
Dim MyStr1 As String
Dim MyStr2 As String
If Me.fldName1.Value = Null Then
MyStr1 = "txtName1 is Empty"
End If
If Me.fldName2.Value = Null Then
MyStr2 = "txtName2 is Empty"
End If
'Message box warning that data is missing.
MsgBox "The following Feilds are blank." _
& vbCr & vbCr & MyStr1 & "" _
& vbCr & vbCr & MyStr4 & "", vbOK, "Missing Data"
I have an Order Form that I want to perform a check on the data when the user
selects a Check Box.
I had the following in the onClick Event of the check box. This doesn't work.
It blows by them and displays an empty message box.
Dim MyStr1 As String
Dim MyStr2 As String
If Me.fldName1.Value = Null Then
MyStr1 = "txtName1 is Empty"
End If
If Me.fldName2.Value = Null Then
MyStr2 = "txtName2 is Empty"
End If
'Message box warning that data is missing.
MsgBox "The following Feilds are blank." _
& vbCr & vbCr & MyStr1 & "" _
& vbCr & vbCr & MyStr4 & "", vbOK, "Missing Data"