|
u delete a duplicate if there's the same date of birth?
that's not a so good thing i think
i think that's better to use a query instead of the second For:
Set RSa = DBa.OpenRecordset("SELECT CustData.* FROM CustData WHERE (CustData.ID <> '" & RS.fields("ID") & "') AND ((CustData.Name = '" & RS.fields("Name") & "') OR (CustData.Phone= '" & RS.fields("Phone") & "') OR (CustData.DateOfBirth= '" & RS.fields("DateOfBirth") & "'))", dbOpenTable)
or if u want to delete the directly use Delete insetad of Select
hope this can help u
|
__________________
_ _ . _ ._. _._. _ _ _ ._._.
|