PC Review


Reply
Thread Tools Rate Thread

Database Starts at 22

 
 
=?Utf-8?B?Y2hpY2Fnb3RlYWNoZXI=?=
Guest
Posts: n/a
 
      5th Nov 2007
Many times when I create a new database and I click to have Access set a
primary key for me, it then starts at the number 22 for the auto number
instead of 1. Can anyone tell me why this is or what I'm doing wrong.

Thanks
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmVycnkgV2hpdHRsZQ==?=
Guest
Posts: n/a
 
      5th Nov 2007
Nothing. Just remember that autonumbers are only guaranteed to be unique if
used as a primary key. You can not depend on them be sequential or even
starting at a certain number. If the numbers must be sequetial and start at
1, an autonumber is not the right choice.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

"chicagoteacher" wrote:

> Many times when I create a new database and I click to have Access set a
> primary key for me, it then starts at the number 22 for the auto number
> instead of 1. Can anyone tell me why this is or what I'm doing wrong.
>
> Thanks

 
Reply With Quote
 
Dirk Goldgar
Guest
Posts: n/a
 
      5th Nov 2007
In news:A7F45E55-5A86-4442-B61F-(E-Mail Removed),
Jerry Whittle <(E-Mail Removed)> wrote:
> Nothing. Just remember that autonumbers are only guaranteed to be
> unique if used as a primary key. You can not depend on them be
> sequential or even starting at a certain number. If the numbers must
> be sequetial and start at 1, an autonumber is not the right choice.


On the other hand, if autonumbers are starting at 22 for most tables,
something a bit odd is going on. While the value of the autonumber
itself means nothing, an autonumber would normally start at 1 when you
begin to enter the first record for a brand new table. Maybe
chicagoteacher is always performing some series of steps that repeatedly
dirties and then clears a new record.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
Reply With Quote
 
=?Utf-8?B?SmVycnkgV2hpdHRsZQ==?=
Guest
Posts: n/a
 
      5th Nov 2007
Good point. I was going to suggest deleting all records in that table. Then
doing a compact and repair to see if it resets the initial autonumber back to
1.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

"Dirk Goldgar" wrote:

> In news:A7F45E55-5A86-4442-B61F-(E-Mail Removed),
> Jerry Whittle <(E-Mail Removed)> wrote:
> > Nothing. Just remember that autonumbers are only guaranteed to be
> > unique if used as a primary key. You can not depend on them be
> > sequential or even starting at a certain number. If the numbers must
> > be sequetial and start at 1, an autonumber is not the right choice.

>
> On the other hand, if autonumbers are starting at 22 for most tables,
> something a bit odd is going on. While the value of the autonumber
> itself means nothing, an autonumber would normally start at 1 when you
> begin to enter the first record for a brand new table. Maybe
> chicagoteacher is always performing some series of steps that repeatedly
> dirties and then clears a new record.
>
> --
> Dirk Goldgar, MS Access MVP
> www.datagnostics.com
>
> (please reply to the newsgroup)
>
>
>

 
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
Excel E-2007 starts, but Installer also starts 3 times??? Thanks for the Great Tip Microsoft Excel Setup 0 24th Jan 2010 03:21 AM
Database does not open but msaccess starts =?Utf-8?B?UCBFbmdlbA==?= Microsoft Access 1 1st Jun 2007 11:01 AM
Notepad starts with "[.ShellClassInfo] computer starts in Vista =?Utf-8?B?b3RobzY5?= Windows Vista General Discussion 7 10th Mar 2007 04:18 PM
VPN connection starts everytime Internet explorer starts =?Utf-8?B?Z2JvaHJtYW4=?= Windows XP Networking 1 22nd Sep 2005 06:01 AM
RunApp command loads Word & starts 2nd occurrance of database Karen Microsoft Access Macros 2 4th Aug 2004 04:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:49 AM.