Results 1 to 3 of 3
  1. #1
    Newby is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Posts
    60

    Fruitless; Deleting a table in Access vba code.

    I trying to Delete a table code. I found an example online at the following site http://nandeshwar.info/2007/07/18/ac...cess-database/. But, this solution requires me to select DAO 3.x. When I try to select that reference, I getg "Name conflicts with exiting module, project or object library". Currently by database has MS Access 12.0 Object Library select. When do you have to select a library? Can you have more than one? Can to chance them?



    newby

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    DAO is the default reference for ac2007. You do not need to select it.

  3. #3
    dreday's Avatar
    dreday is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    58
    You can also run an sql statement: Docmd.RunSQL "DROP TABLE X"

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

Similar Threads

  1. Inventory -- auto deleting from table
    By jmyers6572 in forum Access
    Replies: 2
    Last Post: 07-27-2012, 05:15 AM
  2. Replies: 8
    Last Post: 02-03-2011, 09:51 AM
  3. Replies: 11
    Last Post: 12-14-2010, 01:25 PM
  4. Deleting empty columns from a table
    By kapil0712 in forum Programming
    Replies: 3
    Last Post: 05-17-2010, 12:35 AM
  5. Replies: 0
    Last Post: 11-28-2005, 01:04 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