Reset an autonumber?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • burger54
    New Member
    • Jan 2008
    • 12

    Reset an autonumber?

    I just finished debugging my database for errors and was wondering if there is an easy way to remove all the data and reset the autonumber's to 0?
    I am using Access 2007.
    Thanks
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    Depends on your definition of "easy!" The first thing that comes to mind is to create a new database and import all your objects into it. When selecting the tables, click on Options, then under Import Tables select Definition Only.

    Linq ;0)>

    Comment

    • mshmyob
      Recognized Expert Contributor
      • Jan 2008
      • 903

      #3
      You can DELETE ALL your records in the table that have the autonumber in it. After deleting ALL records you can COMPACT the database and it will restart at 1.


      Cheers,

      Originally posted by burger54
      I just finished debugging my database for errors and was wondering if there is an easy way to remove all the data and reset the autonumber's to 0?
      I am using Access 2007.
      Thanks

      Comment

      • missinglinq
        Recognized Expert Specialist
        • Nov 2006
        • 3533

        #4
        Sorry! I didn't mention this because reports are that it doesn't always work! But it's such a simple answer that it's certainly worth trying first!

        Linq ;0)>

        Comment

        • zaankanter
          New Member
          • Feb 2008
          • 30

          #5
          Thank you, this is just what I was looking for!

          Comment

          • mshmyob
            Recognized Expert Contributor
            • Jan 2008
            • 903

            #6
            Are you saying I only have SIMPLE thoughts Linq.... Now you sound like my wife. lol
            Originally posted by missinglinq
            Sorry! I didn't mention this because reports are that it doesn't always work! But it's such a simple answer that it's certainly worth trying first!

            Linq ;0)>

            Comment

            Working...