Clayhead22
Registered User.
- Local time
- Today, 06:05
- Joined
- Feb 22, 2015
- Messages
- 36
Hi All
I have been working for hours and got to the stage where i can not spot what is going wrong with my DLookup.
Could anyone please cast an eye? Getting a Mis-Match error.
Thank you!
I have been working for hours and got to the stage where i can not spot what is going wrong with my DLookup.
Could anyone please cast an eye? Getting a Mis-Match error.
Code:
If (IsNull(DLookup("[ID]", "Contacts", "[ID] ='" & Me.Contact_Selector.Value & "' And [Date_of_Birth] = #" & Me.DPA_Date_of_Birth & "# And [Email] = '" & Me.DPA_Email.Value & "' And [Mobile] = '" & Me.DPA_Mobile.Value & "' And [Postal_Code] = '" & Me.DPA_Postal_Code.Value & "'"))) Then
MsgBox "Incorrect Details Entered"
Else
MsgBox "DPA Passed!"
End If
Thank you!