PC Review


Reply
Thread Tools Rate Thread

How do I reset the auto number field after deleting records

 
 
=?Utf-8?B?Q29tcG9uY2FsbA==?=
Guest
Posts: n/a
 
      29th Jan 2006
How do I reset the auto number field after deleting records
 
Reply With Quote
 
 
 
 
Joseph Meehan
Guest
Posts: n/a
 
      29th Jan 2006
Componcall wrote:
> How do I reset the auto number field after deleting records


Compact the database. However:

I suggest you may not want to use Autonumber for that use. Autonumbers are
designed to provide unique numbers. It in not designed to provide numbers
in order and for a number of reasons may not do so. As a result using them
in any application where the user sees the numbers is likely to end up with
confusion.

There are other ways of providing the numbers you want depending on the
particual application.


--
Joseph Meehan

Dia duit


 
Reply With Quote
 
Lorenzo\(pyx\)
Guest
Posts: n/a
 
      29th Jan 2006
Componcall wrote:
> How do I reset the auto number field after deleting records


Try to Compact the DataBase.
The AutoNumber Field restart from it's default start value.


--
Lorenzo

 
Reply With Quote
 
=?Utf-8?B?T2Zlcg==?=
Guest
Posts: n/a
 
      29th Jan 2006
Compact and repair of the Mdb where the table located in, will do the trick
But it will only reset it up to the last record, so if you deleted the all
table, it will reset it back to 1, if the last record AutoNumber is 501 and
you delete the last 2 records it will reset the number back to 500.

But if you delete records in the middle it will stay empty.

--
\\// Live Long and Prosper \\//
BS"D


"Componcall" wrote:

> How do I reset the auto number field after deleting records

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto number field displaying gaps once records are deleted sam Microsoft Access Getting Started 4 17th Jul 2009 06:09 PM
Reset a auto number field Nuno Gomes Microsoft Access Queries 3 18th Sep 2008 09:30 AM
Re: Auto Number field in Access reset itself back to 1 Van T. Dinh Microsoft Access VBA Modules 0 9th Jan 2007 02:27 AM
How do I reset the auto number field in access to form 1 =?Utf-8?B?SmFtaWU=?= Microsoft Access 5 18th Apr 2005 04:54 PM
How do I reset a number field that counts records back to zero? =?Utf-8?B?QnJpQXll?= Microsoft Access Forms 1 26th Oct 2004 04:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:32 PM.