Hello,
I have table name TbleProductSales and it has these fields [IDNumber], [SerialNumber], [EndingNumber] and [SaleDate]. What I like to do is prevent duplicate SerialNumber whitin each day's SaleDate for example SerialNumber 123 can have ending number only once a day. IDNumber is the key and it is auto number SerialNumber is text and SaleDate is date. Also if someone tries to enter duplicate within the same date I would like pop up message and delete the entry. I tried little bit in BeforeUpdate but I'm not good in codes and I recently started using access so i need help.
Thanks
I have table name TbleProductSales and it has these fields [IDNumber], [SerialNumber], [EndingNumber] and [SaleDate]. What I like to do is prevent duplicate SerialNumber whitin each day's SaleDate for example SerialNumber 123 can have ending number only once a day. IDNumber is the key and it is auto number SerialNumber is text and SaleDate is date. Also if someone tries to enter duplicate within the same date I would like pop up message and delete the entry. I tried little bit in BeforeUpdate but I'm not good in codes and I recently started using access so i need help.
Thanks