I have created a form which has an auto number as primary key but data entry is ordered by Store numbers (LocNo). So I declared this as a 'Required' field and Indexed Yes no duplicates.
When I enter data, I lookup the LocNo using drop down field and continue with remaining data entry. However, interesting enough, when I select a LocNo, it does not stop me selecting one even though I might have entered data for the same location before. I expect to be prevented from moving to next field if record for duplicate LocNo already existed but this did not happen and I continued entering the full record only to get an error message when I moved to next record or if I saved the record just after moving focus. Surely, there must be some way to stop entering data beyond LocNo field. I tried update before and after and On Exit options, but these don't work.
Could someone provide an insight?
Regards
When I enter data, I lookup the LocNo using drop down field and continue with remaining data entry. However, interesting enough, when I select a LocNo, it does not stop me selecting one even though I might have entered data for the same location before. I expect to be prevented from moving to next field if record for duplicate LocNo already existed but this did not happen and I continued entering the full record only to get an error message when I moved to next record or if I saved the record just after moving focus. Surely, there must be some way to stop entering data beyond LocNo field. I tried update before and after and On Exit options, but these don't work.
Could someone provide an insight?
Regards