prgwhiting
Registered User.
- Local time
- Today, 14:57
- Joined
- Apr 18, 2000
- Messages
- 15
I want to check for duplicates using Dcount. I've got a table which holds names, and one which holds addresses. What I basically need to do is join somehow the statement below. As a match has to be found in first the name table and then the address. Then if it returns 1 or more I know that there is already an occurence of this combination. I could do it if the info was in the same table but it's the seperate tables that are confusing me.
Thanks in advance.
Dcount("[LASTNAME]","TBLAPPLICANTS","[LASTNAME]=[FORMS]![FRMAPPLICANTS]![SEARCHLASTNAME]") AND ("[POSTCODE1]","TBLAPPLICANTS","[POSTCODE1]=[FORMS]![FRMAPPLICANTS]![SEARCHLASTNAME]")
Thanks in advance.
Dcount("[LASTNAME]","TBLAPPLICANTS","[LASTNAME]=[FORMS]![FRMAPPLICANTS]![SEARCHLASTNAME]") AND ("[POSTCODE1]","TBLAPPLICANTS","[POSTCODE1]=[FORMS]![FRMAPPLICANTS]![SEARCHLASTNAME]")