Results 1 to 4 of 4
  1. #1
    greatwhite is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2019
    Location
    Ottawa, ON
    Posts
    56

    Programatically deleting tables

    I am deleting some temps table and if they don't exist I get an error.

    So I wanted to test first if the table exists.
    Something like this


    Set Db = CurrentDb
    If Exists (Db.TableDefs("tblShip_Temp")) Then -----------------------------------Doesn't work
    Db.TableDefs.Delete ("tblShip_Temp")


    End If

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904

  3. #3
    greatwhite is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2019
    Location
    Ottawa, ON
    Posts
    56
    Thanks just what I was looking for.

    Quote Originally Posted by JoeM View Post

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You are welcome.

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

Similar Threads

  1. deleting from multiple tables
    By rameshjctr in forum Forms
    Replies: 3
    Last Post: 03-23-2016, 08:20 AM
  2. Deleting old tables
    By crowegreg in forum Programming
    Replies: 1
    Last Post: 09-06-2013, 11:03 AM
  3. Deleting linked tables
    By hertfordkc in forum Database Design
    Replies: 8
    Last Post: 09-20-2011, 02:58 PM
  4. Deleting error tables
    By bcurrey in forum Programming
    Replies: 3
    Last Post: 08-23-2011, 05:39 PM
  5. Deleting Tables With Wildcard?
    By orcinus in forum Programming
    Replies: 2
    Last Post: 06-20-2011, 10:48 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