Adam McReynolds
Registered User.
- Local time
- Today, 15:29
- Joined
- Aug 6, 2012
- Messages
- 129
Any suggestions on the best way to check for duplicates in unbound text boxes on a form? I have 10 text boxes that I want to check. Currently I have a code in the After Update even of each but I am getting 50/50 results. I have this code in each of the 10 text boxes w/ each different for that text box:
Thanks.
Code:
If Me.txt_rid1 = (Me.txt_rid2 Or Me.txt_rid3 Or Me.txt_rid4 Or Me.txt_rid5 Or Me.txt_rid6 Or Me.txt_rid7 Or Me.txt_rid8 Or Me.txt_rid9 Or Me.txt_rid10) Then
MsgBox "Duplicate Record ID Entered. Please Fix"
Cancel = True
Exit Sub
End If
Thanks.