Results 1 to 3 of 3

Thread: help with my database!!!1

  1. #1

    Thread Starter
    Lively Member jk9694's Avatar
    Join Date
    Dec 2001
    Posts
    78

    help with my database!!!1

    ok, here is the next problem i am faced with.

    If the user of my app wants to load a new file, i need to delete all the entries within my database table. what would be best way to do that

    i was thinking

    do while not rs.eof

    rs.delete

    thanks for all the help everyone

    Have a great day!!

  2. #2
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    hi

    just use

    Code:
    delete from tablename

    As your query to delette all the records.

  3. #3
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    hi

    He means use a query to delete everything from the table :

    '---- Like this - replace tablename with the right tablename tho
    dbengine(0)(0).execute "Delete * from tablename;"

    Regards

    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

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