database corruption?

BennyLinton

Registered User.
Local time
Today, 05:23
Joined
Feb 21, 2014
Messages
263
I have a large database with admittedly some design flaws I inherited namely that the identifying customer number is an autonumber. The problem that has suddenly arisen is my numbers were incrementing properly at 16595, 16596, 16597, etc. and then suddenly I'm getting numbers like 105252012, 105252013, 105252014, etc. appended. I deleted those and still the seed appears to be stuck at such numbers. Is there a way like is done in SQL Server, in Access to reseed to 16598? :banghead:
 
CurrentProject.Connection.Execute "ALTER TABLE yourTable ALTER COLUMN ID COUNTER(16598, 1);"

Backup the table first.
 
Do I place this code in a module and open it or a query?
 
Make a second cipy of the table.

Go to vba and type it in immediate window.

Or make a oublic sub/ func and run it.
 
I put this in the main form, but I'm not sure how to run it:

Public Sub Reseed()
CurrentProject.Connection.Execute "ALTER TABLE applicants ALTER COLUMN ID COUNTER(16514, 1);"
End Sub
 
This is a split-database with the applicants table being a linked table in Access
 
ok think this was correct... I went into the linked BE database's form, typed the line into the Immediates Window, hit enter and i think it worked
 
If it doesnt work, open the be and do it there.
 

Users who are viewing this thread

Back
Top Bottom