Woodpile
New Member
- Joined
- Sep 14, 2007
- Messages
- 38
- Office Version
- 365
- 2016
- Platform
- Windows
Hello,
I am trying to write a delete query to remove records from a table based on records in another table. There is a common field and I want to delete records in table 80 that have no matching records in table 01 (Below). The query works just fine but when I switch it to a Delete Query, it will still show me the correct records in View but I get an error stating "Specify the table containing the records you want to delete"
I can't change the Where in any field to From because the application immediately changes it back to Where.
Here is the SQL if that helps.
DELETE [80- Section Backlog Holding Table].Order, [01- Current Backlog Table].Order
FROM [80- Section Backlog Holding Table] LEFT JOIN [01- Current Backlog Table] ON [80- Section Backlog Holding Table].[Order] = [01- Current Backlog Table].[Order]
WHERE ((([80- Section Backlog Holding Table].Order) Like "*") AND (([01- Current Backlog Table].Order) Is Null));
Any help is appreciated. I can't figure out what I'm doing wrong.
I am trying to write a delete query to remove records from a table based on records in another table. There is a common field and I want to delete records in table 80 that have no matching records in table 01 (Below). The query works just fine but when I switch it to a Delete Query, it will still show me the correct records in View but I get an error stating "Specify the table containing the records you want to delete"
I can't change the Where in any field to From because the application immediately changes it back to Where.
Here is the SQL if that helps.
DELETE [80- Section Backlog Holding Table].Order, [01- Current Backlog Table].Order
FROM [80- Section Backlog Holding Table] LEFT JOIN [01- Current Backlog Table] ON [80- Section Backlog Holding Table].[Order] = [01- Current Backlog Table].[Order]
WHERE ((([80- Section Backlog Holding Table].Order) Like "*") AND (([01- Current Backlog Table].Order) Is Null));
Any help is appreciated. I can't figure out what I'm doing wrong.