TBCourse (CourseID,CourseName)
TBEvent (EventID,EventName,CourseID)
TBPrice (PriceID,Price,EventID)
When I want to delete a Course I also want to delete all Events associated , which is very straight forward, I just use a delete query on TBEvents where the CourseID is equal to the Course I'm deleting.
This is the SQL used for deleting all the Events in TBEvent associated to the Course by CourseID
Expand|Select|Wrap|Line Numbers
- DELETE TBEvent.CourseID
- FROM TBEvent
- WHERE (((TBEvent.CourseID)=[Forms]![FRMCourseDetails].[CourseID]));
Each CourseID will have many EventID's which need to be deleted from TBPrice.Is there a way using an expression in a delete query to do this?
Any suggestions welcome.
Thanks.