Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



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

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
View Public Profile Visit ADAM Web Design's homepage!
 
 
Register now for full access!
Old 04-13-2007, 06:40 PM Re: Access XP and autonumber seed value question
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
View Public Profile Visit ForrestCroce's homepage!
 
Old 04-13-2007, 08:18 PM Re: Access XP and autonumber seed value question
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,528
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://support.microsoft.com/kb/287756

method 2 should work
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 04-14-2007, 02:57 PM Re: Access XP and autonumber seed value question
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
View Public Profile Visit ADAM Web Design's homepage!
 
Old 04-14-2007, 05:57 PM Re: Access XP and autonumber seed value question
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Glad to hear it. Turns out SQL commands aren't worthless in Access after all.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
View Public Profile Visit ForrestCroce's homepage!
 
Closed Thread     « Reply to Access XP and autonumber seed value question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 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.15501 seconds with 12 queries