Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Posts
    395

    Unanswered: Re: code to remove data w/o deleting table

    Hi,
    WHat is the code to remove all records in SQL Server table w/o deleting structure of the table ?

    I tried DoCmd.DeleteObject acTable, "tblSamples_completed" it deletes the table object.
    Is Drop TABLE the right syntax in VBA?
    Thanks!

  2. #2
    Join Date
    Jul 2004
    Posts
    69
    in typical SQL statement, you can delete all records in a table by the ff:

    DELETE FROM tablename

  3. #3
    Join Date
    May 2002
    Posts
    395

    Re: code to remove data w/o deleting table

    Thanks, Daniel.
    That's the code I was looking for. Thanks!

Posting Permissions

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