Results 1 to 5 of 5
  1. #1
    Baldeagle is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Sep 2011
    Location
    Northern Ireland
    Posts
    136

    Analyse my Database to find unattached Objects

    The Database that i developed for a small Charity has grown over the years and has also been changed to meet new requirements. I'm sure there are now Queries, Reports, Forms etc that are no longer required and could be deleted. Is there any simple (and preferably free) way to analyse the Database and find all Objects that are not used via the various Menu Forms that manage the working of the Database?


    I have tripped over Total Access Analyzer which seems to do what I want. But I don't think paying $299 for a one-off use could be justified. Are there any other ways to handle this?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    In my experience, DON'T. Unless you ABSOLUTELY know deleting an object won't break something down the line.
    i just leave them. Deleting things caused headaches because something needed it.

  3. #3
    Baldeagle is offline Competent Performer
    Windows 10 Access 2013
    Join Date
    Sep 2011
    Location
    Northern Ireland
    Posts
    136
    Thanks for the suggestion. I'm inclined to take your advice. But just for my information is there any answer to my original question about how it can be done?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    What some developers do is:
    - (leave well enough alone for fear of removing something critical), but
    - you can get a list of all of your tables, queries, forms, reports, modules (I don't use macros, but I'm sure you can get a current list)
    - you could parse the sql for each query looking for table names (tables that do not have a related query may not be used)
    - you could check the record source of each Form and Report and compare to your tables and queries (result may indicate an unused object)
    - if you're pretty sure something isn't used/referenced, DON'T DELETE IT --just add an XX or something to the name, and monitor database usage and users for errors. If you get something like " can not find XX_Your_original_name", then you know that object is important -- remove the XX and continue.
    - if you do a lot of creating sql within vba modules, it gets trickier (don't delete without having a good current backup--and protect it just in case)

    You can check the Object dependencies to glean as much as you can.

    Bottom line -- do a backup for later reference, and be cautious with deleting objects.

  5. #5
    Baldeagle is offline Competent Performer
    Windows 10 Access 2013
    Join Date
    Sep 2011
    Location
    Northern Ireland
    Posts
    136
    Thanks for that guidance. Much appreciated.

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

Similar Threads

  1. How to analyse data?
    By ManuelLavesa in forum Programming
    Replies: 2
    Last Post: 01-16-2016, 03:38 PM
  2. Emailing Database Objects
    By Jessica240 in forum Macros
    Replies: 3
    Last Post: 02-19-2015, 04:53 PM
  3. Replies: 19
    Last Post: 08-28-2014, 01:13 AM
  4. Replies: 43
    Last Post: 03-27-2014, 01:51 AM
  5. Replies: 3
    Last Post: 10-30-2012, 01:51 PM

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