Results 1 to 8 of 8
  1. #1
    rand is offline Novice
    Windows 8 Access 2013 32bit
    Join Date
    Apr 2016
    Posts
    2

    remove a query from 2013 database

    How can I remove a query from an Access 2013 database? The query was created by accident and is not needed.

    Thank you

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Did you try selecting (highlighting) the query, then pressing the delete key or right clicking on the query and selecting Delete?

  3. #3
    rand is offline Novice
    Windows 8 Access 2013 32bit
    Join Date
    Apr 2016
    Posts
    2
    Steve,

    Unable to delete the query in that way for some reason. Starting to think the Form the query seems to be attached to is corrupted in some way.

    Rand

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Is the "Form the query seems to be attached to" closed when you try to delete the query?

    Open the form in design view.
    Open the properties dialog window.
    Click on the data tab.
    Ensure the Record Source property for the form is blank.
    Delete the query

    Have you tried to do a "Compact and Repair", then delete the query?

  5. #5
    Davehil is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2018
    Posts
    6
    The query does not have an attached form. Does it have something to do with having to hide it first?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Are you able to delete other objects? Create one then delete as a test.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    Davehil is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2018
    Posts
    6
    I have tried compact repair, no luck. Can't delete other forms or queries either. If I open the DB in access 2003, the delete key works but not in access 2013.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Dave, why hijack more than 2 year old thread instead of starting your own? Same question but more recent https://www.accessforums.net/showthread.php?t=73528
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-09-2015, 04:52 PM
  2. How to add/remove users to ms-access 2013
    By alidabiri in forum Access
    Replies: 1
    Last Post: 10-02-2015, 08:16 AM
  3. Replies: 7
    Last Post: 07-31-2014, 07:22 AM
  4. Replies: 4
    Last Post: 08-21-2013, 07:08 AM
  5. Use database to remove data from another?
    By James_ in forum Access
    Replies: 8
    Last Post: 01-23-2012, 09:49 AM

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