PC Review


Reply
 
 
Asif
Guest
Posts: n/a
 
      24th May 2007
I have a form with some data being displayed when I go to update the
form an update query runs asking I'm about to update 1 row and I click
yes. The Autonumber (ID field) displayed in this form changes but not
from say 1 to 2 but rather it jumps from 1 to 3. Any ideas why this is
happening?

Thanks

 
Reply With Quote
 
 
 
 
Joseph Meehan
Guest
Posts: n/a
 
      24th May 2007
Asif wrote:
> I have a form with some data being displayed when I go to update the
> form an update query runs asking I'm about to update 1 row and I click
> yes. The Autonumber (ID field) displayed in this form changes but not
> from say 1 to 2 but rather it jumps from 1 to 3. Any ideas why this is
> happening?
>
> Thanks


I suggest you may not want to use Autonumber for that use. Autonumbers are
designed to provide unique numbers. It in not designed to provide numbers
in order and for a number of reasons may not do so. As a result using them
in any application where the user sees the numbers is likely to end up with
confusion.

There are other ways of providing the numbers you want depending on the
particual application.


--
Joseph Meehan

Dia 's Muire duit



 
Reply With Quote
 
Jason Lepack
Guest
Posts: n/a
 
      24th May 2007
The reason for the jumps is as follows. Create a new record
(Autonumber = 1) If you "dirty" (write something into a field) a form
Access assigns the next Autonumber to that record (Autonumber = 2) and
it's gone. If you cancel that new record and then dirty it you get a
new autonumber (Autonumber = 3).

Cheers,
Jason Lepack

On May 24, 6:20 am, Asif <asifhashm...@hotmail.com> wrote:
> I have a form with some data being displayed when I go to update the
> form an update query runs asking I'm about to update 1 row and I click
> yes. The Autonumber (ID field) displayed in this form changes but not
> from say 1 to 2 but rather it jumps from 1 to 3. Any ideas why this is
> happening?
>
> Thanks



 
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
autonumbers Sharon Microsoft Access 3 13th Mar 2010 06:04 PM
Autonumbers injanib via AccessMonster.com Microsoft Access 5 3rd Aug 2007 06:40 PM
Autonumbers =?Utf-8?B?SlNBS2VsbGV5?= Microsoft Access 2 1st Jun 2006 08:56 PM
Re: Autonumbers and ID Amit Microsoft Access Database Table Design 2 22nd Aug 2003 06:31 PM
autonumbers Dorcas Microsoft Access Database Table Design 2 24th Jul 2003 04:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:50 PM.