sorry for the basic question, but:
I have users entering a serial number on a form in a text box that is
bounded and called via a query. Prior to allowing that number to be
entered into the table, I need to make sure it's not a duplicate. I
can't use the primary key here, so I need some vb code to do the
search the table.
I tried Dlookup, but it seems to trigger as soon as I enter a serial
number for the second case, even if it is not the same as the first
case.
Here's the code I am using:
= DLookup("[name]", "Assignment Table", "forms![assignment
table]![txtserial] = forms![assignment table]![txtserial]")
Any help would be appreciated.
Thanks