Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete from multiple tables

Status
Not open for further replies.

conceptmgt

IS-IT--Management
Sep 12, 2001
45
GB
Hi

How can I delete from 3 tables in an access database, I can delete from table 1 and table 2 but I don't know how to delete from table 3 ast there is no relating field in table 1 and 3. Tables below:

TABLE1
customerid
firstName
Surname

TABLE2
bookingid
customerid
datebooked

TABLE3
weekBookedid
bookingid
statusid

Thanks

Gary
 
Either you set your foreign keys constraints to "On delete cascade" in your DB. This'll delete all the related rows in child tables when deleting in master table. Or you do 3 DELETE queries. Water is not bad as long as it stays out human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top