Results 1 to 3 of 3
  1. #1
    TenOc is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Feb 2015
    Posts
    94

    Way to check and see if this table is used any place before I delete it??

    I am a self-taught access user/programmer. My data base is about 10 years old and I have made many changes to it. I have one table that I am sure (?) is no longer used. Is there a way to check and see if this table is used any place before I delete it??

  2. #2
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Several ways such as
    1. Use the built-in Object Dependencies feature - it doesn't check the code unfortunately but third party tools can do that as well.
    2. Use the built-in Database Documenter. It provides a lot of info...probably more than you want.

    Before deleting any object, I would turn off the Name Autocorrect feature then rename the object e.g. with a z or ~ as a prefix. It doesn't matter what but be consistent.
    Leave it in place for a month or so until you are sure nothing got broken. After that, do a backup as a precaution then delete it
    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!

  3. #3
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Maybe this will be of some help. I found this code many, many years ago and have made modifications for my requirements. It checks all database objects for the specified word.
    Exctact the .bas file and import it into your dB. Goto MODULES and look at the code in the module "MDB Documenter"
    Be sure and Edit the path to where you want the file to be saved
    Code:
    Open "C:\Documents and Settings\Tenoc\Desktop\WhereReferencedHBB.txt" For Output As #k

    Usage
    Code:
    t = WhereReferenced("tblAIQ_Division", prn, k)
    WhereReferenced = the name of the function
    "tblAIQ_Division" = what you are searching for
    prn = boo;ean for printer to text file. Shood leave TRUE
    k = FreeFile - the next free handle for the text file
    Attached Files Attached Files
    Last edited by ssanfu; 11-08-2021 at 05:14 PM. Reason: Helps to attach the Zip file !!

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

Similar Threads

  1. Replies: 20
    Last Post: 01-12-2018, 10:49 AM
  2. Delete does not delete records in evey table
    By LaughingBull in forum Access
    Replies: 5
    Last Post: 09-01-2015, 04:05 PM
  3. Check & Delete Data
    By vishal97 in forum Access
    Replies: 1
    Last Post: 07-09-2012, 12:08 PM
  4. Replies: 2
    Last Post: 01-24-2012, 02:16 PM
  5. Place a table value in a textbox
    By justhininabouti in forum Programming
    Replies: 2
    Last Post: 11-26-2011, 10:56 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