I need to setup some code which looks for duplicates when records are entered. If the first line of an address matches I need it to flag up a message box. Any ideas?
Try setting the "Validation Rule" for the Address1 text field, with the code dlookup("[Address1]", "AddressTable", "[Address1] = " & [Address1]) Is Null
and the "Validation Text" like "Address Found! Try another one"
*** The final "Is Null" is separated by a single space. That´s is different that "IsNull". Both are functional but with different results.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.