R
R_Ewing
I have a table to which I am appending records using an ADODB recordset. The
primary key is a long integer which I increment each time I append a record.
I open the recordset referencing the table and issue a .MoveLast, then obtain
the primary key, increment, and store with the new record. This has worked
well until I appended the 222th record. .MoveLast points to the 220th record
and so I end up with an error for a redundant primary key. This happens
independently of the values I chose for the primary key and for the actual
length of the table. .MoveLast just does not see records beyond the 220th. I
am using a program I developed using Access 2002 with Access 2000 file
structure running under Access 2003. Any help will be appreciated. I am
stuck for things to try.
primary key is a long integer which I increment each time I append a record.
I open the recordset referencing the table and issue a .MoveLast, then obtain
the primary key, increment, and store with the new record. This has worked
well until I appended the 222th record. .MoveLast points to the 220th record
and so I end up with an error for a redundant primary key. This happens
independently of the values I chose for the primary key and for the actual
length of the table. .MoveLast just does not see records beyond the 220th. I
am using a program I developed using Access 2002 with Access 2000 file
structure running under Access 2003. Any help will be appreciated. I am
stuck for things to try.