Results 1 to 8 of 8
  1. #1
    jalewis999 is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2020
    Posts
    14

    error message after changing the name of query.

    Click image for larger version. 

Name:	Capture.JPG 
Views:	20 
Size:	21.1 KB 
ID:	43438
    I changed the name of a query because I found it useful in other procedures. I changed TestGifterLast to GifterLast. I then changed all references to it. I Mean All. I checked over and over, there is no mention of the original name anywhere. This query is used inside a busy loop. The only way out is to keep pressing ok. I did the same to TestGiftFirst with no problems.
    I've tried deleting references to the query, saving and adding them back. No Luck. I've exited and reloaded. No luck. I took a copy of the query and pasted it as the old name. It stopped the message. But I don't like this kind of answer. Please can anyone help.
    Win 10 newest Access.

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Make sure that you have also looked in places like:
    - VBA code
    - Calculated fields within a query
    - Sorting fields

    And make sure that you haven't misspelled it anywhere.

    If it is used in many places, I would try to track it down to the lowest level (at the "base" level of any nesting), and see if you can find where it starts to be a problem, and focus your attention there.

  3. #3
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    I checked over and over, there is no mention of the original name anywhere.
    I would bet money against you on that and I agree with the advice given. The problem reference could also be in a query stack (nested query). A forensic type of investigation might be required. You could also make use of the Database Documenter but you have to select the best options otherwise the document is usually too large to deal with.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    In other posts where this syndrome has prevailed, the suggestion was to try the free V-Tools utility to find source of the "ghost object".

  5. #5
    jalewis999 is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2020
    Posts
    14
    You would win. Thanks

  6. #6
    jalewis999 is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2020
    Posts
    14
    Yes you are all correct. I checked the code, but didn't remember I put it in a query when the DLast I was using proved to be unreliable. Thankyou all.

  7. #7
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    Ahh, the infamous DLast (or DFirst) function. I imagine you were using it on an unordered query or recordset, or worse, just a table?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  8. #8
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Yes you are all correct. I checked the code, but didn't remember I put it in a query when the DLast I was using proved to be unreliable. Thankyou all.
    You are welcome.
    Glad we were able to help!

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

Similar Threads

  1. Replies: 3
    Last Post: 10-21-2018, 08:24 AM
  2. Replies: 0
    Last Post: 10-20-2017, 12:10 PM
  3. Replies: 7
    Last Post: 03-17-2016, 05:53 PM
  4. Replies: 14
    Last Post: 03-31-2015, 05:20 PM
  5. Replies: 8
    Last Post: 11-12-2010, 10:55 AM

Tags for this Thread

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