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  

How to change the starting value of AutoNumber field?



 
 
Thread Tools Display Modes
  #1  
Old August 14th, 2006, 04:53 PM posted to microsoft.public.access.tablesdbdesign
hkgary33 via AccessMonster.com
external usenet poster
 
Posts: 19
Default How to change the starting value of AutoNumber field?

Dear all,
I've searched and read the Access Help file about this question but I still
don't understand how to solve it. For example, in my database, I have a table
named tblFileInfo and it have a AutoNumber field named FileNo (also set as
Primary key to link with other tables). And the "New Values" Property of this
field is set to "Increment". Now, my database is blank, how should I amend in
the property of this field so that the starting value is not from 1? (say, if
I want to start the value from 10000,10001,10002.....)

Thanks a lot!!!!!

Gary

--
Message posted via http://www.accessmonster.com

  #2  
Old August 14th, 2006, 04:58 PM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default How to change the starting value of AutoNumber field?

Use an Append query to write the value one less than you want to the table.

Details of how:
Set AutoNumbers to start from ...
at:
http://allenbrowne.com/ser-26.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"hkgary33 via AccessMonster.com" u23950@uwe wrote in message
news:64c340360c93a@uwe...
Dear all,
I've searched and read the Access Help file about this question but I
still
don't understand how to solve it. For example, in my database, I have a
table
named tblFileInfo and it have a AutoNumber field named FileNo (also set as
Primary key to link with other tables). And the "New Values" Property of
this
field is set to "Increment". Now, my database is blank, how should I amend
in
the property of this field so that the starting value is not from 1? (say,
if
I want to start the value from 10000,10001,10002.....)



 




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 09:38 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.