Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / March 2007

Tip: Looking for answers? Try searching our database.

Form Autonumber does not match the number of records  on the table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Manny - 16 Mar 2007 18:11 GMT
I have a form where I entered Tenant information.  Every time I open this
form the Auto number increments by one.   For example the Auto number in is
20 even though I only have 2 records in the table

I expected that the next number would give me is the number 3 for the next
record.

Any suggestions how this could be fix?

I am a novice with Access.  

Thank you, in advance for your help.

Regards,
storrboy - 16 Mar 2007 18:20 GMT
Autonumbers seem to be a daily topic lately.
If the linear sequence of the field is important to you, don't use
Autonumbers. It is intended to be a simple method of assigning a
unique index to a record. If that index needs to mean something to you
or your users, you should employ a different method. The help file
contains examples of how to re-order the field, but you will come into
this situation again. Either don't worry about the number, or use a
different indexing method.
Rick B - 16 Mar 2007 18:26 GMT
There is nothing to fix.  An autonumber is simply a unique number that can
be used as a key.  Your users should rarely (if ever) see the autonumber
field.  It is an internal item, not something for the end user.

If you care about the number, you need to create your own numerical field
and create code that will find the highest entry and add one to it when
creating a new record.

For exact information on how to do this, look at previous posts on the
topic.  Search for "incrementing field" or "increment value".

There are several here...
http://groups.google.com/groups/search?hl=en&ie=UTF-8&oe=UTF-8&q=microsoft.publi
c.access+increment+field+form


Good luck!

Signature

Rick B

>I have a form where I entered Tenant information.  Every time I open this
> form the Auto number increments by one.   For example the Auto number in
[quoted text clipped - 11 lines]
>
> Regards,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.