Hello,
I have qryDistReg which it filters the data from tblDistReg, then I'm appending the filtered data to tblDistRegData. As am appending the data one monthly basis, I want to check the data of tblDistRegData before running the append query/code. I'm using the following code to check for the duplicates.
If (DMax("RC_IDFK", "qryDistRegAscFilter") >= _
DMax("RC_IDFK", "tblDistRegData")) Then
msgbox "Duplicate"
Exit Sub
End If
The question is how to to check for duplicates using more than one field. in my case I would like to you RC_IDFK field and RegisterID both are numeric fields.
hope it clarifies.
Thanks
I have qryDistReg which it filters the data from tblDistReg, then I'm appending the filtered data to tblDistRegData. As am appending the data one monthly basis, I want to check the data of tblDistRegData before running the append query/code. I'm using the following code to check for the duplicates.
If (DMax("RC_IDFK", "qryDistRegAscFilter") >= _
DMax("RC_IDFK", "tblDistRegData")) Then
msgbox "Duplicate"
Exit Sub
End If
The question is how to to check for duplicates using more than one field. in my case I would like to you RC_IDFK field and RegisterID both are numeric fields.
hope it clarifies.
Thanks