+ Reply to Thread
Results 1 to 2 of 2

Deleting all records in a access database table from Excel

  1. #1
    Registered User
    Join Date
    07-25-2008
    Location
    England
    Posts
    8

    Deleting all records in a access database table from Excel

    I cant seem to find the code from anywhere so hopefully somebody can help me. All i want to do is delete all records in a table using vba from excel

    The code below opens up a table and inserts the data from excel
    Please Login or Register  to view this content.
    Ive included the area where i want to delete the records in the above code. As in theory, it will easier to update the table by just deleting all the records and resubmitting all the data again.

    Anyone know how to do this?

    Many Thanks

    Dave

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2006
    Location
    -
    MS-Off Ver
    2010
    Posts
    388
    This example uses an SQL command to delete all records from the Computers table in an Access database called Test.mdb.
    Requires a reference to the ADODB library (Tools>References)

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1