Reply
Access XP and autonumber seed value question
Old 04-13-2007, 02:33 PM Access XP and autonumber seed value question
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Hi there,

Any time I use Access, I always use the Autonumber field with the default seed value (1). What I want to do is start the numbering at a different value for a particular table I'm generating (in this case, 500); this is actually the first time in 7 years that I've had this come up, if you can believe that.

Unlike SQL Server, I don't see a spot to adjust the seed value. So...other than creating 499 fake records, how would I?

Thanks.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
When You Register, These Ads Go Away!
Old 04-13-2007, 05:40 PM Re: Access XP and autonumber seed value question
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,024
Name: Forrest Croce
Location: Seattle, WA
In the table's design mode, there's a tab control at the bottom of the screen, with basic and advanced options for each field. I think you can set the autonumber's seed under the advanced section.

Or, you could use a SQL command to drop the existing column and build a new one with a seed.
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 04-13-2007, 07:18 PM Re: Access XP and autonumber seed value question
chrishirst's Avatar
Super Moderator

Latest Blog Post:
Javascript alert
Posts: 13,688
Location: Blackpool. UK
http://support.microsoft.com/kb/287756

method 2 should work
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-14-2007, 01:57 PM Re: Access XP and autonumber seed value question
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Thanks, Forrest and Chris. Forrest: it was your second idea that worked. You can't actually modify the identity seed value in any of the field properties like you can with SQL server; however, you can create a table using an SQL query and ASP that will allow you to set the seed value, which is what worked for me.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 04-14-2007, 04:57 PM Re: Access XP and autonumber seed value question
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,024
Name: Forrest Croce
Location: Seattle, WA
Glad to hear it. Turns out SQL commands aren't worthless in Access after all.
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Reply     « Reply to Access XP and autonumber seed value question
 

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13355 seconds with 12 queries