Results 1 to 3 of 3

Thread: clearing an Access table from VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Posts
    5

    Post

    Hi,
    I'm writing data from a flexgrid to a table in Access 97. There may already be data in the table. How can I clear all the data in the table every time I write to it?

    Thanks,
    Jason

  2. #2
    Member
    Join Date
    Feb 1999
    Location
    Lexington,kentucky,USA
    Posts
    61

    Post

    You can delete all the data from table


    Dim Db as database
    Dim SQLs as string
    Set db = opendatabase("C:\Bibilio.mdb")
    SQLs= "Delete from Address"
    Db.execute SQLS

    The above SQL command will delete all the contents from the table Address


    I hope this is what you want

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Posts
    5

    Post

    Thanks!

    Works just fine

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