Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    drunyan0824 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2022
    Posts
    82

    Resolve Error regarding missing object dependency

    I am getting an error message that reads "The table or query name 'Maintenance_TBL' you entered in the property sheet or macro is misspelled or refers to a table or query that doesn't exist." when I try to expand the records that I have on a table titled "tblEquip". I opened the Object Dependencies window and the missing Maintenance_TBL but I renamed this table to tblMaint. Is there a way to fix this problem? I can't find a way to change Maintenance_TBL to tblMaintenance in the objects dependencies window.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    never rename things once youve programmed or made queries. you get errors.
    to fix, rebuild every query that references it.

  3. #3
    drunyan0824 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2022
    Posts
    82
    I can't find any other query that references that table. Maybe I deleted it. I am assuming if I can't resolve the error, I will have problems with my database.

    Nevermind, I was wrong. all of my queries depend on that table.

  4. #4
    drunyan0824 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2022
    Posts
    82
    That didn't work, I just re-created a query and it was still dependent on the missing Maintenance_TBL.

  5. #5
    drunyan0824 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2022
    Posts
    82
    Rebuilding the query didn't work. Does this mean that I need start the database over from scratch?

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,569
    Have you checked your property sheets.?
    Easiest solution would be to rename it back and learn from this.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  7. #7
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    Have you tried to turn off then on the Name AutoCorrect tracking? Also, if that doesn't work try to import all objects in a brand new Access file.
    Click image for larger version. 

Name:	Screenshot 2023-04-06 225417.png 
Views:	21 
Size:	75.0 KB 
ID:	50064
    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  8. #8
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,424
    You might have a calculated field using the old name in an expression (e.g. IIF function, DMax, DCount, etc.). If the problem lies in the property sheet we could be talking about a form or control that references the old name - also possibly within an expression.
    Last edited by Micron; 04-06-2023 at 04:53 PM. Reason: added info
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  9. #9
    drunyan0824 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2022
    Posts
    82
    Quote Originally Posted by Welshgasman View Post
    Have you checked your property sheets.?
    Easiest solution would be to rename it back and learn from this.

    Renamed the table and it fixed the issue. So I have the option of renaming something in access but if I do, I potentially screw up my object dependency. Then if I am halfway through creating a database and realize that I gave a table or query a confusing name I am just stuck with that name unless I start creating the DB from scratch again?

  10. #10
    drunyan0824 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2022
    Posts
    82
    Quote Originally Posted by Gicu View Post
    Have you tried to turn off then on the Name AutoCorrect tracking? Also, if that doesn't work try to import all objects in a brand new Access file.

    Cheers,
    I didn't think about trying to toggle the auto name correction. I ended up just importing the tables into a new database.

  11. #11
    drunyan0824 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2022
    Posts
    82
    Quote Originally Posted by Micron View Post
    You might have a calculated field using the old name in an expression (e.g. IIF function, DMax, DCount, etc.). If the problem lies in the property sheet we could be talking about a form or control that references the old name - also possibly within an expression.
    I checked the property sheets and the calculated fields that I have and couldn't find any reference to the missing table.

  12. #12
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    The Name AutoCorrect feature isn't fully trusted by many developers but it works well provided certain precautions are taken to ensure the name changes are fully propagated through.
    See my article Use Name AutoCorrect Successfully (isladogs.co.uk)
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  13. #13
    drunyan0824 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2022
    Posts
    82
    Quote Originally Posted by isladogs View Post
    The Name AutoCorrect feature isn't fully trusted by many developers but it works well provided certain precautions are taken to ensure the name changes are fully propagated through.
    See my article Use Name AutoCorrect Successfully (isladogs.co.uk)
    Thank you for the link to your article. I am a couple of questions after reading the article. Would copying and pasting the data and structure of a table, then giving the table a new name run the same risks as renaming the table? Would doing a make table or an append query be a option if I wanted to change the names and field my tables?

  14. #14
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    The only risks with NAC are not ensuring each name change has been fully propagated through each affected database object. My article gives code to overcome such issues

    If you copy & paste a table and its data to a new table, the dependency info will be identical to the original. So in that respect, no benefit or additional risk

    Not sure what your final sentence is asking but, if you start again with a new table, you may lose any NAC info already collected
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  15. #15
    drunyan0824 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2022
    Posts
    82
    Quote Originally Posted by isladogs View Post
    The only risks with NAC are not ensuring each name change has been fully propagated through each affected database object. My article gives code to overcome such issues

    If you copy & paste a table and its data to a new table, the dependency info will be identical to the original. So in that respect, no benefit or additional risk

    Not sure what your final sentence is asking but, if you start again with a new table, you may lose any NAC info already collected
    Lets say I have a table in a database called tblCategory. Then as I am building my database I realize that the name tblCategory is confusing and I need to change it. Could I create a new table called tblCableCategory that has the same structure as tblCategory and then run an append query to copy all of my data from tblCategory to tblCategory and avoid a dependence error?

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Looking for comprehensive Object Dependency utility
    By GraeagleBill in forum Access
    Replies: 2
    Last Post: 05-15-2019, 09:26 AM
  2. Need help to resolve - Error appears "Object Required"
    By awaiskazmi in forum Programming
    Replies: 4
    Last Post: 10-30-2017, 10:45 PM
  3. remove object dependency
    By Jen0dorf in forum Access
    Replies: 1
    Last Post: 11-03-2015, 08:33 AM
  4. Replies: 0
    Last Post: 02-20-2012, 04:57 PM
  5. Missing Dependency Question
    By usmcgrunt in forum Access
    Replies: 2
    Last Post: 09-07-2010, 11:55 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