Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. resetting id after deleting records

resetting id after deleting records

Scheduled Pinned Locked Moved Database
2 Posts 2 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    ginola
    wrote on last edited by
    #1

    after i had delete the records by the following line: objConnection.execute "DELETE * FROM tea_session_list" what should i add to the statement to have the autonumber id also being resetted to be start at 1 aaa

    R 1 Reply Last reply
    0
    • G ginola

      after i had delete the records by the following line: objConnection.execute "DELETE * FROM tea_session_list" what should i add to the statement to have the autonumber id also being resetted to be start at 1 aaa

      R Offline
      R Offline
      Rashid Thadha
      wrote on last edited by
      #2

      Compacting the database will solve your problem First, eliminate all records in your table. Then, close the database but leave Access running. The menu bar reduces to three options. Go to Tools > Options > Compact Databases. I am not sure how you would do this at runtime !! :cool:

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups