98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Access Training and help » Access 2010
Access 2010
Resolved · High Priority · Version 2010
Stuart has attended:
Access Intermediate course
Access Advanced course
Access VBA course
Access 2010
I have a form with a delete button that refers to 2 tables.
When I delete I want to delete info from both tables.
Please advise.
RE: Access 2010
Hello Stuart,
Thank you for your question regarding adding a delete button which removes the records from both your tables.
Since ID fields in both tables are a match then you must have a primary key field in both tables. First remove any relationships you already have then save and close the relationship window.
Open the table which does not have a primary key and assign the PK to the ID field (Ref) then save and close the table.
Re-open the Relationships window and drag the Ref field across to the Ref field in the other table. Check the 'Enforce Referential Integrity' box and also check 'Cascade Delete Related Records'.
Enter sample data and test.
I hope this resolves your question. If it has, please mark this question as resolved.
If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?
Have a great day.
Regards,
Rodney
Microsoft Office Specialist Trainer
Attached files...
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Access tip:Undo Entries In RecordsTo Undo any entries or changes in records: |