PC Review


Reply
Thread Tools Rate Thread

! Autonumbering Reset !

 
 
Wembly
Guest
Posts: n/a
 
      11th Nov 2003
Hi,

I'm using Access 2000 and was wondering if it was possible
to reset the autonumbering in a table?

Or is this wishful thinking?

Thanks

Wembly
 
Reply With Quote
 
 
 
 
Chris
Guest
Posts: n/a
 
      11th Nov 2003
Not directly, but try this ...
Right click the required table and select copy
Click in a blank area of the tables window ( so that no
table is selected.
Right click and select paste
enter a temp table name and select "Structure only"
then click OK

That will create a clone of your table.
You can populate the new table with an append query from
the old, or simply delete the old one and rename the new
one.

>-----Original Message-----
>Hi,
>
>I'm using Access 2000 and was wondering if it was

possible
>to reset the autonumbering in a table?
>
>Or is this wishful thinking?
>
>Thanks
>
>Wembly
>.
>

 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      11th Nov 2003
On Mon, 10 Nov 2003 19:42:35 -0800, "Wembly"
<(E-Mail Removed)> wrote:

>Hi,
>
>I'm using Access 2000 and was wondering if it was possible
>to reset the autonumbering in a table?


Empty the table. Compact the database. That's all it takes...

Note that the actual value of an autonumber should be *TOTALLY
IRRELEVANT* - autonumbers will always have gaps, and should not be
used in any way which assigns any importance to the actual values
stored. Most developers conceal autonumbers from user view at all
times.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 
Reply With Quote
 
Michael San Filippo
Guest
Posts: n/a
 
      11th Nov 2003
You can also just do an append query into the autonumber field of what you
want to set it to.

Say you want to reset the autonumber to 1000

all you have to do is make an append query to append into the autonumber
field the number 999 (assuming that is not already being used.

If you have other REQUIRED fields in that table, you will also have to
append some kind of data into those fields also.

Once you have this trick down - it will take you less than a minute to do
whenever you wanna do this again.
"Wembly" <(E-Mail Removed)> wrote in message
news:075f01c3a805$d86e5c80$(E-Mail Removed)...
> Hi,
>
> I'm using Access 2000 and was wondering if it was possible
> to reset the autonumbering in a table?
>
> Or is this wishful thinking?
>
> Thanks
>
> Wembly



 
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
reset autonumbering Jan Coucke Microsoft Access 3 24th Apr 2004 04:28 PM
How to reset an autonumbering??? Zofia Microsoft Access 0 2nd Sep 2003 10:33 PM
How to reset an autonumbering??? ced Microsoft Access 0 28th Aug 2003 07:41 PM
Re: How to reset an autonumbering??? Van T. Dinh Microsoft Access 0 28th Aug 2003 05:11 PM
Re: How to reset an autonumbering??? JohnFol Microsoft Access 0 28th Aug 2003 04:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:30 PM.