[AccessD] Autonumber Assigned Immediately

DWUTKA at marlow.com DWUTKA at marlow.com
Fri Sep 9 00:13:01 CDT 2005


You can 'restart' an autonumber.

Drew

	-----Original Message-----
	From:	Bruen, Bruce [SMTP:Bruce.Bruen at railcorp.nsw.gov.au]
	Sent:	Thursday, September 08, 2005 7:24 PM
	To:	Access Developers discussion and problem solving
	Subject:	Re: [AccessD] Autonumber Assigned Immediately

	The real problem is that you can only have one autonumber field in a
	record - so by convention "we" all now expect it to be used as a
	surrogate key.  I have many, many times needed one or more unique
	identifiers (user visble).  Example, in a test management db I need
to
	automagically number a test scenario and also assign a sequential
unique
	number to its execution id.  In addition, how many problems could be
	solved by a "grouped" or restartable autonumber.
	Quite frankly AFAIC autonumber sucks for all uses.

	bruce

	-----Original Message-----
	From: accessd-bounces at databaseadvisors.com
	[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of
MartyConnelly
	Sent: Friday, 9 September 2005 10:11 AM
	To: Access Developers discussion and problem solving
	Subject: Re: [AccessD] Autonumber Assigned Immediately

	Just use autonumber keys that are GUID's and watch the tears flow.

	Charlotte Foust wrote:

	>And even if they are sequential, it doesn't mean they're
consecutive!
	>
	>Charlotte Foust
	>
	>
	>-----Original Message-----
	>From: Ken Ismert [mailto:KIsmert at texassystems.com]
	>Sent: Thursday, September 08, 2005 3:55 PM
	>To: Access Developers discussion and problem solving
	>Subject: Re: [AccessD] Autonumber Assigned Immediately
	>
	>
	>
	>  
	>
	>>>IMO, the autonumber field is simply a way to create sequential 
	>>>numbering without writing a bunch code to do so.
	>>>      
	>>>
	>
	>You can't assume Autonumbers are sequential. You can specify random
new

	>values for an Autonumber field. Further, for replication, Access
will 
	>change all Autonumber fields to random, to reduce key collisions.
	>
	>So, you can only assume that Autonumbers are unique. 
	>
	>If you change Autonumber modes, knowingly or not, you can be fairly

	>sure your users will freak when they see "-1.07E+09" as the next 
	>reference number on a report using an Autonumber field.
	>
	>-Ken
	>  
	>

	--
	Marty Connelly
	Victoria, B.C.
	Canada



	-- 
	AccessD mailing list
	AccessD at databaseadvisors.com
	http://databaseadvisors.com/mailman/listinfo/accessd
	Website: http://www.databaseadvisors.com



	This e-mail and any attachments may contain confidential information
that is intended solely for the use of the intended recipient and may be
subject to copyright. If you receive this e-mail in error, please notify the
sender immediately and delete the e-mail and its attachments from your
system.  You must not disclose, copy or use any part of this e-mail if you
are not the intended recipient.  Any opinion expressed in this e-mail and
any attachments is not an opinion of RailCorp unless stated or apparent from
its content. RailCorp is not responsible for any unauthorised alterations to
this e-mail or any attachments. RailCorp will not incur any liability
resulting directly or indirectly as a result of the recipient accessing any
of the attached files that may contain a virus. 
	-- 
	AccessD mailing list
	AccessD at databaseadvisors.com
	http://databaseadvisors.com/mailman/listinfo/accessd
	Website: http://www.databaseadvisors.com



More information about the AccessD mailing list