473,396 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Autonumbering

Hi,

Could anyone help me with the following problem?

I created a database for scientific documents, using the usual AutoNumbering
for creating Document_ID's (primary key). The Document_ID's should thus be
the same as the recordnumbers. Now a strange thing happens: numbering is
fine upto # 326, but then, instead of getting 327 for the next Doc_ID, the
numbering continues suddenly with number 65571! Of course I can't change the
numbering manually because it's an Autonumbered field (and there are several
relationships of course).

Can anyone tell me what is going wrong?

Thanks in advance,

Richard
Nov 13 '05 #1
2 1625
Richard, There's nothing wrong. When records are deleted the autonumbers
are not recovered. It picks up where the last one left off. So, if you
originally had 200 records and the autonumbers were consecutively number 1
to 200 and say you deleted records 100 through 200, the next record you add
will have autonumber of 201. It shouldn't matter to you exactly what the
autonumber is. The only thing it should serve as is a unique identifier for
each record.

--
Reggie

----------
"Richard" <rd****@kabelfoon.nl> wrote in message
news:40*********************@news.kabelfoon.nl...
Hi,

Could anyone help me with the following problem?

I created a database for scientific documents, using the usual AutoNumbering for creating Document_ID's (primary key). The Document_ID's should thus be
the same as the recordnumbers. Now a strange thing happens: numbering is
fine upto # 326, but then, instead of getting 327 for the next Doc_ID, the
numbering continues suddenly with number 65571! Of course I can't change the numbering manually because it's an Autonumbered field (and there are several relationships of course).

Can anyone tell me what is going wrong?

Thanks in advance,

Richard

Nov 13 '05 #2
Dear Richard

Good news, you can adjust the autonumber. The way to do this is a bit
funny....

You append a record using a query, where you include a number (the one you
want to have next -1) for the ID field.

Next you delete this appended record

Result: access will start counting starting at the number you appended + 1.

- Nicolaas
PS - if you are not sure about this procedure then do not hesitate to ask
(reply to group - not email)
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: WangKhar | last post by:
Gents, I have come into a system that uses a secondary table to generate (for want of a better word) Identities. eg create table myidents ( name sysname not null, ident int not null)
2
by: netx | last post by:
I created table with "id" field as "uniqueidentifier" (primary key). I connect via ODBC from MS-Acces. -->>> Don't know how to something like "Autonumber" in MS-Access. Let me know If any...
2
by: Robin Lumley | last post by:
Have set up a inventory of IT equipment in a small school, and I need to give each item a unique serial number, ie: DHRS 01, DHRS 02, etc the text is needed as we intend to security mark, once...
1
by: Peter D | last post by:
Private Sub Form_BeforeUpdate(Cancel As Integer) Dim X Dim Y Dim z X = Year(Date) Y = Nz(DMax("mycounter", "TABLENAME", "myyear=" & X), 0) + 1 Me!txtmycounter = Y Me!txtmyyear = X End Sub
2
by: N. Graves | last post by:
Hey is there a command like in SQL Transactional that will reset the Autonumber field to the highest number in the found in the field? I developing a access database with a several table that...
1
by: Randy | last post by:
Whenever I used Approach I could link fields together from the Main table to the detail table and when I entered the CASE NUMBER in the Main table it would automatically put that number in the CASE...
1
by: BlueHeaven | last post by:
Hi all, How to create auto numbering in datagrid if I show the data from database to datagrid by using datasource = dataset. Thanks all
3
by: LeeCaroline | last post by:
Hi, Please forgive me if I use the wrong terminology, I will do the best I can. I am a self-taught Access uses and cueently creating a database for the firm I work for. Part of its function will...
1
by: FRENCH GUY | last post by:
Hi everyone, At the moment, I am working on a database with several tables. Almost every table has her own autonumbering field. So herefore, I am looking for the command that I have to include in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.