Results 1 to 2 of 2
  1. #1
    Lounger
    Join Date
    Dec 2007
    Location
    Sacramento, California, USA
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    deleting data from table, keeping structure (Access 2003)

    I currently have:

    DoCmd.DeleteObject acTable, "tblBusboss"

    But, I do not want to delete the entire table. I want to delete the data and keep the structure. This is a database that is really just being used for queries, it will need to be cleared out before each use.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: deleting data from table, keeping structure (Access 2003)

    Instead of deleting the table, execute a query that deletes the records in the table. If you want to do this in code, you can do it as follows:

    CurrentDb.Execute "DELETE * FROM tblBusBoss"

Posting Permissions

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