Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate Autonumber Field

Status
Not open for further replies.

MsJami

Technical User
Sep 1, 2004
29
US
I have an autonumber field that is my pk and it is now creating duplicate numbers.
I can't seem to get it to stop,
any suggestions would be greatly appreciated
Thank You
Jami
 
compact/repair the database

if that doesn't solve it, drop the table, delete the database, format your hard drive, reinstall your operating system, reinstall your database, redefine the tables, and reload them with data

that oughta do it :)

just kidding

how do you know there are duplicates?

have you done this:

select pk from mytable group by pk having count(*)>1

what other columns are in the table?

rudy
SQL Consulting
 
Yes I ran a find duplicates query then, I went in and deleted the duplicates, compact and repair and try to ad those items again. No luck.
My columns are:
Timebilledid,projectid,job#,empid,billingdate,hourlyrate,
billablehours,subsistence.

This is a table to track time spent on each project and to calculate hours.

My highest number 645 and it keeps jumping to the 200's.
I am at my wits end with this
Jami
 
Also I should mention that I had appended and deleted projectid's that we are no longer working on. I don't know if that has anything to do with it, so my number are out of order now anyway.
Jami
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top