Results 1 to 6 of 6
  1. #1
    batowl is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    86

    Not Allowed To Run Delete Query

    I am trying to run a delete query, but I keep getting the error message: "Could not delete from specified tables". The database is not read-only and I have permissions to make plenty of other changes to the table I am trying to delete records from.



    I set the query up exactly how Office Online describes it should be done. Sure enough, when I switch out of design view and into database view, I see the appropriate records that should be deleted, but when I try to actually run this query, I cannot. Any suggestions?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    This link may be useful: http://allenbrowne.com/ser-61.html

  3. #3
    batowl is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    86
    Hi - thanks for the clarification. According to that website, it would seem that my problem lies in the fact that I have a grouping clause and according to the site, if the query "has a GROUP BY clause. A Totals query is always read-only."

    I would normally drop it there, but that does not explain why Microsoft's own instructions indicate that this is the proper way to go about building and running this query:
    http://office.microsoft.com/en-us/ac...in=EC001022370
    Under the section on
    I want to delete records that are duplicates of others.

    they have a portion of the query that includes <> [Distinct].[MinOfHireDate]
    in the Criteria field of the query.

    Basically, I just have a table with multiple entries for a single individual. All I want to do is eliminate the duplicates (and sometimes triplicates) within this one table and be left with one record for each person. If there is an easier solution to this problem, I would love to know! Thanks!!

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I'm afraid I cannot explain how you are interpreting the Microsoft site as my internet connection is acting up. I suspected you had a read only Recordset from your original description which is why I provided the link I did.

  5. #5
    batowl is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    86
    That's ok. I am going to read up on all this a bit more tonight and have at it with a fresh mind in the morning. Thanks for the link, did not know about the read-only status of queries with grouping before!

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Good! Are you ready to use the Thread Tools to mark this thread as Solved?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Delete Query
    By stan.chernov@gmail.com in forum Queries
    Replies: 3
    Last Post: 09-17-2010, 04:10 PM
  2. Delete Query
    By jgelpi16 in forum Queries
    Replies: 2
    Last Post: 09-14-2010, 12:16 PM
  3. Two fields not allowed in Report
    By normie in forum Reports
    Replies: 1
    Last Post: 07-10-2010, 04:40 PM
  4. HELP with Delete Query
    By brown in forum Queries
    Replies: 1
    Last Post: 04-22-2009, 10:11 PM
  5. Total Number of Fields allowed on a Form
    By tpearo in forum Forms
    Replies: 1
    Last Post: 12-15-2005, 06:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums