Access - Delete Query in Design View - On Inner Join

I have created an inner join on two same field names in two tables A and B. There is a double inner join on the fields: Last Name and ID.

In design view, I have indicated the criteria that Table A 'Last Name' = Table B 'Last Name', and the same for ID field.

I will be deleting the records from Table A, where Last Name and ID are the same between Tables A and B.

I prefer to set this up in Design View, but when I submit, I get the error message 'Specify the Table' even though this is already done in the Design View parameters:

Field:            Last Name (and ID)
Table:           A
Delete:         Where
Criteria:        as mentioned above, inner join on both Last Name and ID

Therefore I have two field parameters in Design View, one for Last Name and one for ID

Hope this makes sense.
exp vgAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeffrey CoachmanMIS LiasonCommented:
Some of the more complex Join types simply cannot be represented easily in MS Access.

To be clear, can you post the actual SQL?
In a typical arrangement like this, there would be no need to join on the name, ...a join on the ID alone should suffice....
Rey Obrero (Capricorn1)Commented:
<I will be deleting the records from Table A, where Last Name and ID are the same between Tables A and B.>

then, you can NOT use a join to delete the records
try this

Delete *
From A where ID In (select ID from B)

is the ID field unique in both tables?
exp vgAuthor Commented:
Here is the SQL statement:


I was able to delete the records with this SQL statement, once I set Unique Records property to 'Yes,' but I am not able to configure the join, etc in Design View.

Is this possible in Design View, or do I have to use a SQL statement?

Currently in Design View, I only have one field listed as VIV_2D.* with Delete From, and the two joins on Last Name and ID in the table join area, but not in the grid area.
Without seeing your schema, I can't say for sure but it is most likely that the query engine cannot figure out the relationship between tblA and tblB because you are not joining on PK to data field.  That is why a straight join won't work.  For a join to work, the relationship would need to be hierarchical and the row to delete would have to be the child row.  For example, joining tblOrder to tblOrderDetails on OrderID would allow you to delete rows from tblOrderDetails but NOT rows from tblOrder.  On a join from tblCustomer to tblOrder, you could delete orders but NOT customers.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
exp vgAuthor Commented:
Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.