A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Resetting" AutoNumber



 
 
Thread Tools Display Modes
  #1  
Old August 22nd, 2006, 07:15 PM posted to microsoft.public.access.tablesdbdesign
kalexander
external usenet poster
 
Posts: 7
Default "Resetting" AutoNumber

I accidentally imported some data which had primary key field values (MSID)
starting in a much higher range than I want this field to go to. Essentially,
they were imported with 10000 range numbers, though I want to keep our
numbering within the hundreds range. (This is a meaningful number for us and
our clients to identify our records anonymously - and so we want to keep the
ranges low and relatively sequential). I've since deleted the data and
re-imported it with adjusted MSIDs, however, this is an autonumber field and
(as many of you reading would have anticipated) now when I go to enter new
records the MSID field starts populating back in the 10000 ranges. Is there
any way to make access forget about the importing error and start new
numbering back in the hundreds range? I've attempted "tricking" access with
creating clone fields and then swapping them out - but it just refuses to be
out-smarted. Thanks in advance!
  #2  
Old August 22nd, 2006, 09:20 PM posted to microsoft.public.access.tablesdbdesign
LauriS
external usenet poster
 
Posts: 65
Default "Resetting" AutoNumber

Compacting the database should reset the autonumbers. It does in Access 2000.

Lauri S.

"kalexander" wrote:

I accidentally imported some data which had primary key field values (MSID)
starting in a much higher range than I want this field to go to. Essentially,
they were imported with 10000 range numbers, though I want to keep our
numbering within the hundreds range. (This is a meaningful number for us and
our clients to identify our records anonymously - and so we want to keep the
ranges low and relatively sequential). I've since deleted the data and
re-imported it with adjusted MSIDs, however, this is an autonumber field and
(as many of you reading would have anticipated) now when I go to enter new
records the MSID field starts populating back in the 10000 ranges. Is there
any way to make access forget about the importing error and start new
numbering back in the hundreds range? I've attempted "tricking" access with
creating clone fields and then swapping them out - but it just refuses to be
out-smarted. Thanks in advance!

  #3  
Old August 23rd, 2006, 02:22 AM posted to microsoft.public.access.tablesdbdesign
Gina Whipp
external usenet poster
 
Posts: 3,500
Default "Resetting" AutoNumber

My 2 cents...

If you care about what number is in autonumber then you should increment the
field another way. Autonumber frequently skips numbers among other things,
in other words it's not dependable.

Gina Whipp

"kalexander" wrote in message
...
I accidentally imported some data which had primary key field values (MSID)
starting in a much higher range than I want this field to go to.
Essentially,
they were imported with 10000 range numbers, though I want to keep our
numbering within the hundreds range. (This is a meaningful number for us
and
our clients to identify our records anonymously - and so we want to keep
the
ranges low and relatively sequential). I've since deleted the data and
re-imported it with adjusted MSIDs, however, this is an autonumber field
and
(as many of you reading would have anticipated) now when I go to enter new
records the MSID field starts populating back in the 10000 ranges. Is
there
any way to make access forget about the importing error and start new
numbering back in the hundreds range? I've attempted "tricking" access
with
creating clone fields and then swapping them out - but it just refuses to
be
out-smarted. Thanks in advance!



  #4  
Old August 23rd, 2006, 04:19 PM posted to microsoft.public.access.tablesdbdesign
kalexander
external usenet poster
 
Posts: 7
Default "Resetting" AutoNumber

Oh right, works fine now thanks!

"LauriS" wrote:

Compacting the database should reset the autonumbers. It does in Access 2000.

Lauri S.

"kalexander" wrote:

I accidentally imported some data which had primary key field values (MSID)
starting in a much higher range than I want this field to go to. Essentially,
they were imported with 10000 range numbers, though I want to keep our
numbering within the hundreds range. (This is a meaningful number for us and
our clients to identify our records anonymously - and so we want to keep the
ranges low and relatively sequential). I've since deleted the data and
re-imported it with adjusted MSIDs, however, this is an autonumber field and
(as many of you reading would have anticipated) now when I go to enter new
records the MSID field starts populating back in the 10000 ranges. Is there
any way to make access forget about the importing error and start new
numbering back in the hundreds range? I've attempted "tricking" access with
creating clone fields and then swapping them out - but it just refuses to be
out-smarted. Thanks in advance!

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.