OrionElectrotech
Technical User
I have a data entry form where users add new Candidates and their information. The candidate name (ca_name) is the primary key in the underlying table (CANDIDATES), with no duplicates allowed, but duplications will not be checked for until they save the form. However I need it to check if it is a duplicate immediately.
I have tried the following macro, which runs On Update -
DLookUp("[ca_name]","[CANDIDATES]","[CA_NAME] = Form.[CA_NAME] ") Is Not Null
And cancels the event.
However this appears to be creating lots of record locks, we're guessing when 2 or more users are adding candidates at the same time, and the DLookup is trying to run simultaneously?
Does anyone have any suggestions of how to stop this happening?
Thanks
Caroline
I have tried the following macro, which runs On Update -
DLookUp("[ca_name]","[CANDIDATES]","[CA_NAME] = Form.[CA_NAME] ") Is Not Null
And cancels the event.
However this appears to be creating lots of record locks, we're guessing when 2 or more users are adding candidates at the same time, and the DLookup is trying to run simultaneously?
Does anyone have any suggestions of how to stop this happening?
Thanks
Caroline