C
C Tate
I have an Access database from which I occasionally need to completely
delete data. The data relates to various projects and I usually make up a
list of the projects whose data I wish to delete in Excel. I then import
that spreadsheet into Access as a table. I then use a query like the one
below to delete the relevant data.
DELETE * FROM yourtable
WHERE ProjectName NOT IN
(SELECT ProjectName FROM LinkedExcelTable);
My problem is this. As there are a lot of tables in the database, I wish to
somehow amend my query so that it will operate on ALL of the tables, not
just one at a time which is how I am doing it at present.
delete data. The data relates to various projects and I usually make up a
list of the projects whose data I wish to delete in Excel. I then import
that spreadsheet into Access as a table. I then use a query like the one
below to delete the relevant data.
DELETE * FROM yourtable
WHERE ProjectName NOT IN
(SELECT ProjectName FROM LinkedExcelTable);
My problem is this. As there are a lot of tables in the database, I wish to
somehow amend my query so that it will operate on ALL of the tables, not
just one at a time which is how I am doing it at present.