473,322 Members | 1,307 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,322 software developers and data experts.

autonumber issue in access 2000 (it's a database backend for webapplication) - seems to increment by 2 sometimes

Hi there

The table in question now has around 25000 records (simple -only 3
columns)

Records are added with a simple insert statement :

INSERT INTO SS_REQUEST_SERVICES ( REQUEST_ID, SERVICE_ID ) values(?,?)

and the autonumber field is incrementet with one. No problem ; - all
running smoothly. Today we had a little problem - and looking into it
it seems that over the last year or so there are about 4 instances
where the gap between 2 IDs are more than 1.

Since the autonumber generated is references in another table, I can
conclude that the number was created as it exists in the other table -
but it has disappeared in the table SS_REQUEST_SERVICES where it was
originally "autogenerated" .

This is one is tough - Has anybody else experienced this - is it a
timing issue, a collision issue, compact repair or ???

cheers
larry
Nov 13 '05 #1
1 1326
Autonumbers are not even represented to always be sequential, only to be
unique. They are not reused when the record is deleted. Related records are
only deleted when the "master" is deleted if you have specified "Referential
Integrity" and "Cascading Delete".

I see nothing in your post to indicate that it is not "working as designed",
unless you did specify RI and CD, and they didn't work.

Larry Linson
Microsoft Access MVP
"larry" <ga*********@holger.co.uk> wrote in message
news:76**************************@posting.google.c om...
Hi there

The table in question now has around 25000 records (simple -only 3
columns)

Records are added with a simple insert statement :

INSERT INTO SS_REQUEST_SERVICES ( REQUEST_ID, SERVICE_ID ) values(?,?)

and the autonumber field is incrementet with one. No problem ; - all
running smoothly. Today we had a little problem - and looking into it
it seems that over the last year or so there are about 4 instances
where the gap between 2 IDs are more than 1.

Since the autonumber generated is references in another table, I can
conclude that the number was created as it exists in the other table -
but it has disappeared in the table SS_REQUEST_SERVICES where it was
originally "autogenerated" .

This is one is tough - Has anybody else experienced this - is it a
timing issue, a collision issue, compact repair or ???

cheers
larry

Nov 13 '05 #2

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

Similar topics

33
by: Lee C. | last post by:
I'm finding this to be extremely difficult to set up. I understand that Access won't manage the primary key and the cascade updates for a table. Fine. I tried changing the PK type to number and...
35
by: Traci | last post by:
If I have a table with an autonumber primary key and 100 records and I delete the last 50 records, the next record added would have a primary key of 101. Is there any way to have the primary key...
26
by: jimfortune | last post by:
Sometimes I use Autonumber fields for ID fields. Furthermore, sometimes I use those same fields in orderdetail type tables. So it's important in that case that once an autonumber key value is...
4
by: Vladislav | last post by:
My customers have reported strange behaviour of the locally used modules for running the register on stroke patients, specifically, adding new patient to the register. When analising a sample, I...
47
by: ship | last post by:
Hi We need some advice: We are thinking of upgrading our Access database from Access 2000 to Access 2004. How stable is MS Office 2003? (particularly Access 2003). We are just a small...
11
by: Alan Mailer | last post by:
A project I'm working on is going to use VB6 as a front end. The back end is going to be pre-existing MS Access 2002 database tables which already have records in them *but do not have any...
9
by: Tom_F | last post by:
To comp.databases.ms-access -- I just discovered, to my more than mild dismay, that some tables in my Microsoft Access 2003 database have duplicate numbers in the "AutoNumber" field. (Field...
4
by: ThePhenix | last post by:
Hi everybody, I have recently been doing a conversion for my boss for a access 2000 database (both front and backend) to a MSSQL backend. I finished the conversion today (as quite a lot of the...
6
by: ashes | last post by:
Hi, I am creating an ecommerce website using Microsoft Visual Studio, VB.Net and MS Access 2003. I am new to VB.Net When someone wants to register on the website, they fill out a form and the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.