hennep
Programmer
- Dec 10, 2000
- 429
I have a problem in an Access 2k application with linked tables in a sql-server 7 database.
In a form I create a new record in the linked table, when I save the record using this code: DoCmd.RunCommand acCmdSaveRecord the last record (another record) in the table is shown and the newly created record is saved as recordno 215 (ALWAYS 215 !!!).
Only after executing "Me.Requery" the new record is moved to the end of the table.
To reproduce this problem create a table in access 2000 with an autonumber field and a text field, the autonumber field is the primary key.
Add at least 215 records to this table and export this table to sql server.
All help is appreciated, I do not have a clue how to solve this.
In a form I create a new record in the linked table, when I save the record using this code: DoCmd.RunCommand acCmdSaveRecord the last record (another record) in the table is shown and the newly created record is saved as recordno 215 (ALWAYS 215 !!!).
Only after executing "Me.Requery" the new record is moved to the end of the table.
To reproduce this problem create a table in access 2000 with an autonumber field and a text field, the autonumber field is the primary key.
Add at least 215 records to this table and export this table to sql server.
All help is appreciated, I do not have a clue how to solve this.