itbeginner
Instructor
1. It’s about a video system. I have a supplier table which contains records of all suppliers. I have a purchase table in which I keep record of any video I purchase and from which supplier. The supplier table is therefore linked to the purchase table in a 1-to-many relationship.
The problem is if a supplier no longer supplies videos to the shop, its record should be deleted from the supplier table. But I would not like its corresponding records in the purchase table to be deleted. How do I do that?
If I don’t set the cascade delete related records, Access does not let me delete the record in the supplier table. If I set it, it deletes records from both tables and I don’t want this to happen.
Can you please help?
2. In a table, if you put a lookup field which gets its values from another table, Access automatically the relationship between the 2 tables. When relationships have been set, it becomes very difficult to make changes to the tables, especially to the linking field. Access tells you to delete the relationship first but this does not work. I have to delete the table completely and create it again. This is of much of a problem. Can this be resolved by any means?
The problem is if a supplier no longer supplies videos to the shop, its record should be deleted from the supplier table. But I would not like its corresponding records in the purchase table to be deleted. How do I do that?
If I don’t set the cascade delete related records, Access does not let me delete the record in the supplier table. If I set it, it deletes records from both tables and I don’t want this to happen.
Can you please help?
2. In a table, if you put a lookup field which gets its values from another table, Access automatically the relationship between the 2 tables. When relationships have been set, it becomes very difficult to make changes to the tables, especially to the linking field. Access tells you to delete the relationship first but this does not work. I have to delete the table completely and create it again. This is of much of a problem. Can this be resolved by any means?