A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Autonumber tables



 
 
Thread Tools Display Modes
  #1  
Old October 9th, 2006, 09:36 PM posted to microsoft.public.access.forms
Cindy
external usenet poster
 
Posts: 385
Default Autonumber tables

My autonumber in my table database skipped from 1017 to 1019 but not in my
form. What would cause this to skip a number in my table
  #2  
Old October 9th, 2006, 09:55 PM posted to microsoft.public.access.forms
Wayne-I-M
external usenet poster
 
Posts: 3,674
Default Autonumber tables

Hi Cindy

Your table does not always sort on the autonumber (or record 1018 was
deleted). The make the form sort in a specific way create a query based on
your table then sort this query how you want. Open the form in design view
and use the new query as the record source.

This will ensure the order of records is shown in a way that you decide (in
the query sorting)

--
Wayne
Manchester, England.
Enjoy whatever it is you do


"cindy" wrote:

My autonumber in my table database skipped from 1017 to 1019 but not in my
form. What would cause this to skip a number in my table

  #3  
Old October 9th, 2006, 09:57 PM posted to microsoft.public.access.forms
Van T. Dinh
external usenet poster
 
Posts: 1,048
Default Autonumber tables

AutoNumber will develop gaps!

Form example, when you start adding a new Record, JET will allocate a value
to the AutoNumber Field for this new Record. If, for some reason, you
cancel the addition, the allocated value will NOT be recovered and the next
new Record will (usually) be allocated the next value.

If you referred to the number in the Navigation Bar of your Form, that is
NOT the value number of your Record. It is actually the RecordNumber of the
Record in the Form's Recordset. Note that the AutoNumber value of a Record
is fixed but the RecordNumber depends on your selection criteria and the
sorting on your Form. Try sorting your Form Descending and it is likely
that the RecordNumber of each Record will be different from the AutoNumber
value.

--
HTH
Van T. Dinh
MVP (Access)



"cindy" wrote in message
...
My autonumber in my table database skipped from 1017 to 1019 but not in my
form. What would cause this to skip a number in my table



 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.