Results 1 to 3 of 3

Thread: How to delete a table in Access?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Norway
    Posts
    112
    How do one delete a table in Access?
    CurrentDB.OpenRecordset("myTable").Delete ?

  2. #2
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Isle of Man
    Posts
    276
    it's been a long while since i've done it, but from memory you could try: -

    CurrentDb.Execute "DROP TABLE <Tablename>"



  3. #3
    Member
    Join Date
    Jun 2000
    Location
    In front of Computer
    Posts
    37
    you could do a docmd.deleteobject "<mytable>" i think

    or else you could write a query that deletes the table

    i think i have one hold on
    .
    .
    .
    looking
    .
    .
    .
    sql = "DROP TABLE [mytable]"
    myDatabase.execute sql

    thats the easiest and fastest way to do it.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width