Hi there!
I have vb-code that searches for duplicate records:
If DCount("ProdSN", "Lager", "ProdSN = '" & Me!ProdSN & "'"
> 0 And _
DCount("ProjIn", "Lager", "ProjIn = '" & Me!ProjIn & "'"
> 0 Then
The problem I have is that it counts matching field on different rows in the table "Lager". I want it to find "ProdSN" and "ProjIn" where they exist on the same row in the table table.
I'm pretty fresh at vb-coding, perhaps there are a better ways to find duplicates. Would appreciate any help =D
Hope my english isn't to bad for you to understand
Thanks
I have vb-code that searches for duplicate records:
If DCount("ProdSN", "Lager", "ProdSN = '" & Me!ProdSN & "'"
DCount("ProjIn", "Lager", "ProjIn = '" & Me!ProjIn & "'"
The problem I have is that it counts matching field on different rows in the table "Lager". I want it to find "ProdSN" and "ProjIn" where they exist on the same row in the table table.
I'm pretty fresh at vb-coding, perhaps there are a better ways to find duplicates. Would appreciate any help =D
Hope my english isn't to bad for you to understand
Thanks