CoffeeGuru
Registered User.
- Local time
- Today, 23:48
- Joined
- Jun 20, 2013
- Messages
- 121
My database now has a table of acceptable products
My Master table tblMaster has a load of records that need to be cleared out, as they are not in tblProducts. My new upload method should take care of this in the future.
I have run the "Find Unmatched Query Wizard" to get a list of all the rubbish product codes [UID] in [tblMaster]
So now I want to DELETE all records FROM [tblMaster] WHERE [tblMaster Without Matching tblProducts]![UID] = [tblMaster].[UID]
I am expecting 7367 records to be deleted
a. how do I write this as my attempt complains that I need to "Specify the table containing the records you want to delete."
b. will Access tell me how many records it is about to delete before doing it.....just a bit worried.
or would it be best to move the records to a temp delete table then just delete the table ... belt and braces affair
My Master table tblMaster has a load of records that need to be cleared out, as they are not in tblProducts. My new upload method should take care of this in the future.
I have run the "Find Unmatched Query Wizard" to get a list of all the rubbish product codes [UID] in [tblMaster]
So now I want to DELETE all records FROM [tblMaster] WHERE [tblMaster Without Matching tblProducts]![UID] = [tblMaster].[UID]
Code:
DELETE [tblMaster] *
FROM [tblMaster]
INNER JOIN [001 tblMaster Without Matching tblProducts]
ON [tblMaster].UID = [001 tblMaster Without Matching tblProducts].UID;
I am expecting 7367 records to be deleted
a. how do I write this as my attempt complains that I need to "Specify the table containing the records you want to delete."
b. will Access tell me how many records it is about to delete before doing it.....just a bit worried.
or would it be best to move the records to a temp delete table then just delete the table ... belt and braces affair