Hi,
Dim Add1 As String
Dim Add2 As String
Dim TestComp As Integer
Add1 = Me.Address
Add2 = Me!frmDeliveryAddressSubFrm.Form![Address]
TestComp = StrComp(Add2, Add1)
If TestComp = -1 Then
MsgBox "The Main Address, does not match the Delivery Address, Please correct this Information", vbOKOnly, "Just to let you know"
Exit Sub
End If
The above code works find for fields with text, sometimes one of the fields (could be either) is empty
How do I add code to test for a Null Value or nothing?
Many Thank
Neill
Dim Add1 As String
Dim Add2 As String
Dim TestComp As Integer
Add1 = Me.Address
Add2 = Me!frmDeliveryAddressSubFrm.Form![Address]
TestComp = StrComp(Add2, Add1)
If TestComp = -1 Then
MsgBox "The Main Address, does not match the Delivery Address, Please correct this Information", vbOKOnly, "Just to let you know"
Exit Sub
End If
The above code works find for fields with text, sometimes one of the fields (could be either) is empty
How do I add code to test for a Null Value or nothing?
Many Thank
Neill