Results 1 to 3 of 3

Thread: very simple request

  1. #1
    Guest

    Post

    How do I delete all records in an access table while referencing them through a recordset?


    Thanks,
    Marc


  2. #2
    Lively Member
    Join Date
    Jan 1999
    Posts
    82

    Post

    With your connection object:

    First connect the connectionobject to the database in question then execute a delete statement:

    ConnectionObject.Open
    ConnectionObject.Execute("DELETE FROM tablename")

    This will delete all the records in the table

    HTH,

    Preeti


  3. #3
    New Member
    Join Date
    Feb 1999
    Location
    Ft Worth, TX, USA
    Posts
    11

    Post

    Another simple way to do it is to write a delete query in Access with a couple of parameters, then pass the parameters. Make the Database do the work, not the program.

    Jason

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