Autonumber Bug

Shadez

Registered User.
Local time
Today, 02:54
Joined
Jan 20, 2003
Messages
192
Im having a little trouble with the auto number,

I have a table with the auto as the primary key, the problem is that the autonumber for new records is less than the max value of the autonumber field.

eg

max value in key field (2254)
Value auto uses for a new record(2233)

I didnt think this was possible??????:confused:

does anyone know how to fix this error or do i have to get rid of the auto and workout the key number myself

thanks





:cool:ShadeZ:cool:
 
There is a problem with newer versions of jet and the autonumber, from what I've read the "fix" doesn't work. Best bet is to search the knowledge base and see if there's a new fix
 
I was a victom of this recently. I tracked the problem down to a form and I was able to actually recreate the problem. I fixed the tables by resetting the autonumber seed using ADO. Adding rows to the table worked fine. Adding rows via a query worked fine. Adding rows with a new form worked fine. Adding a row with the "bad" form, broke the autonumber.

I thought that copying all objects would get rid of the "bad" code in the form but nothing worked. None of the Microsoft suggested fixes worked either. The problem originated in A2K but I could replicate it in AXP. Eventually, I imported all objects EXCEPT the broken form and the broken table. I then recreated both and they have been working fine.
 

Users who are viewing this thread

Back
Top Bottom