I've got a form used to enter information about store inspections. The tblInspection has: InspectionID (PK), InspecDate, and StoreNum.
InspecDate and StoreNum are always unique as there cannot be more than 1 inspection per day per store.
I dont want the user to be able to enter the same StoreNum and InspecDate for more than 1 record.
Should I have made a composite key out of InspecDate and StoreNum or is there another way to achieve this?
InspecDate and StoreNum are always unique as there cannot be more than 1 inspection per day per store.
I dont want the user to be able to enter the same StoreNum and InspecDate for more than 1 record.
Should I have made a composite key out of InspecDate and StoreNum or is there another way to achieve this?