E
Eric_LA
Hi,
I have an Access front-end linked to a SQL table. I recently made a change
to the table by adding a column. On the back-end, I copied the original
table, let's call it tblA, to tblB. I added new columns to tblB. I then
changed the table names: tblA to tblA_old and tblB to tblA. (Perhaps not the
best way to handle the change - but that's how I did it.)
This table has an integer for a primary key, defined as autonumber on the
Access front-end. Now, when I try to add records to the table using the
front-end (either through a form or entering it in the table itself), as soon
as the record gets dirty, the key field is cleared. I cannot enter a number
manually and I cannot save the record because the primary key field is now
null.
The exact error is "ODBC call failed ... Cannot insert the value NULL into
column 'pk_ID' ... (#3621)"
Is the autonumber generator somehow out of synch with this new table (but
with the original name)? How can I resolve this?
Thanks for any help.
Eric
I have an Access front-end linked to a SQL table. I recently made a change
to the table by adding a column. On the back-end, I copied the original
table, let's call it tblA, to tblB. I added new columns to tblB. I then
changed the table names: tblA to tblA_old and tblB to tblA. (Perhaps not the
best way to handle the change - but that's how I did it.)
This table has an integer for a primary key, defined as autonumber on the
Access front-end. Now, when I try to add records to the table using the
front-end (either through a form or entering it in the table itself), as soon
as the record gets dirty, the key field is cleared. I cannot enter a number
manually and I cannot save the record because the primary key field is now
null.
The exact error is "ODBC call failed ... Cannot insert the value NULL into
column 'pk_ID' ... (#3621)"
Is the autonumber generator somehow out of synch with this new table (but
with the original name)? How can I resolve this?
Thanks for any help.
Eric