PDA

Click to See Complete Forum and Search --> : Deleting Primary Key value


chinhow
Jan 15th, 2003, 01:05 AM
Hi, I have a Access table and ID is the primary key field for instance, but i can't add record anymore after i deleted one of the record. It showed me an exception error message with 'number has already presence'. But this problem solved when i exit my program and operate it again. Can anyone tell me what is the problem?

CoMMiE
Jan 15th, 2003, 01:40 AM
hi
try inserting a none duplicate id on the primary key column

chinhow
Jan 15th, 2003, 01:42 AM
It still displays the same error message no matter what value i typed in the Primary Key Field

Mr.No
Jan 15th, 2003, 06:58 AM
chinhow

Try repairing the Access database. Is your primary key column an Autonumber field. If yes you can't explicitly set a value.

chinhow
Jan 15th, 2003, 06:19 PM
my primary key is not a autonumber field