chellebell1689
Registered User.
- Local time
- Yesterday, 21:24
- Joined
- Mar 23, 2015
- Messages
- 267
Hello,
I have a form (MemberDetails) and I want it to check if the member I'm adding has already been added, or at least give me a warning that the member might be a duplicate. I have a FName field and LName field that I would like checked (together). I know it's possible because I've seen it done on the Address Book template, but they have it set up to where the First & Last name are saved as one field in another table and a bunch of other crazy stuff that I don't understand why they did it. I don't know VBA (learning that this semester).
In case someone wants to just modify the expression used in the template to suit my needs, here it is.
=IIf(DCount("*","[Contacts Extended]","[ENV_NUM]<>" & Nz([ENV_NUM],0) & " And [Contact Name] = '" & Replace(Nz([Contact Name]),"'","''") & "'")>0,"Possible Duplicate","")
Thank you in advance for the help!
P.S.
Let me know if you need more info or clarity.
Also, if this is a duplicate post, sorry. I tried searching but all I could find is based on the ID or how to do the duplicate query (and that's not it because they way I saw it built was through an expression).
I have a form (MemberDetails) and I want it to check if the member I'm adding has already been added, or at least give me a warning that the member might be a duplicate. I have a FName field and LName field that I would like checked (together). I know it's possible because I've seen it done on the Address Book template, but they have it set up to where the First & Last name are saved as one field in another table and a bunch of other crazy stuff that I don't understand why they did it. I don't know VBA (learning that this semester).
In case someone wants to just modify the expression used in the template to suit my needs, here it is.
=IIf(DCount("*","[Contacts Extended]","[ENV_NUM]<>" & Nz([ENV_NUM],0) & " And [Contact Name] = '" & Replace(Nz([Contact Name]),"'","''") & "'")>0,"Possible Duplicate","")
Thank you in advance for the help!
P.S.
Let me know if you need more info or clarity.
Also, if this is a duplicate post, sorry. I tried searching but all I could find is based on the ID or how to do the duplicate query (and that's not it because they way I saw it built was through an expression).