Solved

Delete Query in Access 2010 Doesn't Work

Posted on 2012-03-15
1
449 Views
Last Modified: 2012-04-11
Access 2010.
When I try to run the query below it gives me the Could Not Delete from Specified Tables error.
I used the exact same query on different data (same table names and structure) and it runs fine - I created this in Access 2003 last year - tried running it in 2010 and it runs.

DELETE [Filter 3 Make Table].*, [Filter 3 Make Table].ResType
FROM [Lessees after Filter 3 for Delete Query] INNER JOIN [Filter 3 Make Table] ON ([Lessees after Filter 3 for Delete Query].Unit = [Filter 3 Make Table].Unit) AND ([Lessees after Filter 3 for Delete Query].MP = [Filter 3 Make Table].MP)
WHERE ((([Filter 3 Make Table].ResType)<>"LESS"));

Thanks Experts!
0
Comment
Question by:Nero83
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 43

Accepted Solution

by:
Eugene Z earned 500 total points
ID: 37727451
you need to have several separated deletes

more:

check solutions from the article:

I get the error message "Could not delete from the specified tables"
http://office.microsoft.com/en-us/access-help/i-get-the-error-message-could-not-delete-from-the-specified-tables-HA010096316.aspx
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL / Table Lock? 7 40
Microsoft exchange 2010 issue 1 19
STUFF function - proper use to update column? 6 15
Import XML File into MS SQL table 3 4
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question