Results 1 to 10 of 10
  1. #1
    bbaughman is offline Novice
    Windows 10 Office 365
    Join Date
    Nov 2020
    Posts
    4

    How to Delete an Access Object in the Query Group


    Hello All, I am using Access 2019 and created a query by mistake, is there a way to fully delete this object so it no longer shows in my object list down the left side of my program? I have been searching online but seem to only find how to Create a delete query which is not what I want. I am part of the Admins group, so I would assume I have permission to do everything.

  2. #2
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    You cannot simply select it and get rid of it by pressing delete? Or select, right click, choose 'delete'?
    If not, maybe post a pic of what you see - unless you're getting some kind of error message, which certainly would help.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    bbaughman is offline Novice
    Windows 10 Office 365
    Join Date
    Nov 2020
    Posts
    4
    I would have thought that would be the first option as well but delete is grayed out. I have attached a couple of snapshots. I am currently logged in as bb
    Click image for larger version. 

Name:	Capture.JPG 
Views:	11 
Size:	59.1 KB 
ID:	43424Click image for larger version. 

Name:	Capture1.1.JPG 
Views:	10 
Size:	32.4 KB 
ID:	43426Click image for larger version. 

Name:	Capture1.JPG 
Views:	10 
Size:	26.9 KB 
ID:	43425

  4. #4
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,144
    It's interesting that the query has (Replicated) after it's type description.
    I think that only appears when a query is not local. Which may explain why you can't delete it.

    This is what a normal one looks like;
    Click image for larger version. 

Name:	QueryProps.png 
Views:	10 
Size:	13.8 KB 
ID:	43427
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  5. #5
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,175
    The query properties say the query is replicated. Could it be the database you're working with is an older version using replication? Maybe the data master?

  6. #6
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    It's been my experience that you cannot open a replication database with anything newer than 2010 (or maybe 2013 at most).
    Maybe the tables involved in the query are not Access tables? Not that I know much about them, but maybe they are replicated tables from a SQL Synapse Pool...
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  7. #7
    bbaughman is offline Novice
    Windows 10 Office 365
    Join Date
    Nov 2020
    Posts
    4
    To create the "dont use" query, I right clicked on the query "Mix by Job" and clicked copy. I did this thinking I could change the input required from the user and get a query by date instead of job. Since it didnt work, I opened the design view for "dont use" and deleted any of the links I had to tables to see if it would let me get rid of it. The original database was created in access 2007 but since my copied query was done in access 2019, I wouldn't think that would prevent me from deleting it.

    edit: The file is being accessed from a network resource. I had to create a shortcut and link the security file to the shortcut because the main database says I do not have the correct permissions if I try to open the main access database. One other thing to note is when I first open the database and look at properties for my queries they show (local) but after several seconds I check the properties again and it changes to replicated.
    Last edited by bbaughman; 11-09-2020 at 11:22 AM. Reason: More information

  8. #8
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    This security file is an .mdw? I never had to bother with Access Workgroup Information files too much when it was around and whatever I learned I've pretty much forgotten. Perhaps your permissions in that file are not as robust as you think (assuming that's what we're talking about). You might have the ability to create but not delete.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  9. #9
    bbaughman is offline Novice
    Windows 10 Office 365
    Join Date
    Nov 2020
    Posts
    4
    Quote Originally Posted by Micron View Post
    This security file is an .mdw? I never had to bother with Access Workgroup Information files too much when it was around and whatever I learned I've pretty much forgotten. Perhaps your permissions in that file are not as robust as you think (assuming that's what we're talking about). You might have the ability to create but not delete.
    Thank you. I appreciate you bringing that up. Permissions were the issue, but not with the mdw file. With the database file I went to User and Group Permissions, selected "Query" from the Object Type: drop down. Made sure my user name and the query I wanted to delete was selected. Checked the Administer Box and hit apply. Closed the database file and after I reopened it I was able to delete.

  10. #10
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    Glad to see that you got it solved!
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 7
    Last Post: 05-23-2019, 07:18 AM
  2. Replies: 2
    Last Post: 02-20-2019, 10:45 PM
  3. cant delete class object
    By tagteam in forum Access
    Replies: 3
    Last Post: 12-14-2017, 10:07 AM
  4. Replies: 2
    Last Post: 01-24-2012, 02:16 PM
  5. Replies: 1
    Last Post: 09-03-2011, 07:01 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