We are using archiving software that stores info in an access database.
The database contains three tables that I'll call tb1, tb2, and tb3.
All tables have a field called "id"
tb2 and tb3 might have matching "id" values to tb1.
What I want to do is delete data from tb1 and if tb2 and tb3 have an "id" value found in tb1, then delete those as well.
But I want to do this by checking a value of a field in tb1 using "LIKE".
For example: If field "title" starts with "[notice]", then I want to delete the record and also any record in tb2 and tb3 that has the same "id" field value as tb1.
The query using "like" could potentially return hundreds of records. Is there an easy way to do this in a single query or batch?
The database contains three tables that I'll call tb1, tb2, and tb3.
All tables have a field called "id"
tb2 and tb3 might have matching "id" values to tb1.
What I want to do is delete data from tb1 and if tb2 and tb3 have an "id" value found in tb1, then delete those as well.
But I want to do this by checking a value of a field in tb1 using "LIKE".
For example: If field "title" starts with "[notice]", then I want to delete the record and also any record in tb2 and tb3 that has the same "id" field value as tb1.
The query using "like" could potentially return hundreds of records. Is there an easy way to do this in a single query or batch?