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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't add record into table

Status
Not open for further replies.

bxgirl

Programmer
Nov 21, 2005
75
US
I have a simple table setup with a primary key whose dataType is set to autonumber. I simply open the table and each time I try to add a record, instead of the primary key incrementing it takes a preexisting id. So i can't add a new record. I notice a + sign to the right of the rows which my other tables don't have.

Any reason why this would happen?
 
Why would you be entering data directly into a table?

Have you tried creating a new table with same fields and testing if this still happens?
 
How are ya bxgirl . . .

It appears you have corruption of some kind! . . . Try Compact & Repair and see if that helps!

Calvin.gif
See Ya! . . . . . .
 
ssatech, I tried to enter data thru one of my forms when I rcvd an error message about a duplicate key. So I went thru the backend and tried entering a record and noticed what was happening. Yes I have tried this with other tables and it worked. It use to work with this table.

TheAceMan1, I'm doing fine here in the boogie down. I tried the compact & repair...no luck.
 
The + sign in your table indicates a subdatasheet. When you click on it, it will show the corresponding records in another table that it is related to. When you create relationships between tables in the relationship window, Access 2002 and higher automatically puts the + sign there. So you're probably trying to insert a new record against the rules of referenial integrity. Thus the error. You can break the relationship it's connected to. Then you'll probably be able to add the new record. Or you may have Click Insert - Subdatasheet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top