Say I have 3 tables in Access which are Supplier Details, Trasaction Details and Item Details. So here goes the question:
1. How to write the code snipet to ensure that the new Supplier ID or Supplier Name entered doens't exist in the database? Plus an error message should be flashed if the Supplier ID/name already exist.
2. How to ensure that the Item Code and Supplier Code are present in the appropriate tables before letting a new Transaction to take place (to add a new transaction to Transaction Details).
3. How to write the code to ensure data integrity. Say if a Supplier ID is modified, then the Transcation database will be updated. Either update the changes made to the Supplier ID, or delete the records that are link to the deleted Supplier.
I'd be very happy if I could get some helps. Thanks a lot
1. How to write the code snipet to ensure that the new Supplier ID or Supplier Name entered doens't exist in the database? Plus an error message should be flashed if the Supplier ID/name already exist.
2. How to ensure that the Item Code and Supplier Code are present in the appropriate tables before letting a new Transaction to take place (to add a new transaction to Transaction Details).
3. How to write the code to ensure data integrity. Say if a Supplier ID is modified, then the Transcation database will be updated. Either update the changes made to the Supplier ID, or delete the records that are link to the deleted Supplier.
I'd be very happy if I could get some helps. Thanks a lot