I'm very new to vba coding and have a simple question:
My database requires users to scan serial numbers into multiple text boxes on a form that are written to a table. How do you search multiple fields in the same table for a duplicate record?
This is what I have so far:
This would work fine if I only had one field.
Please Help.
Thanks
Jason
My database requires users to scan serial numbers into multiple text boxes on a form that are written to a table. How do you search multiple fields in the same table for a duplicate record?
This is what I have so far:
Code:
If DCount("[Serial # 1]", "MAIN SERIAL TABLE_364", "[Serial # 1] = '" & Me![Serial # 1] & "'") > 0 Then
msgbox "Duplicate Serial Number"
This would work fine if I only had one field.
Please Help.
Thanks
Jason