I am working on an Access 2003 application where the data has been upsized to SQL Server 2005.
I need to make a change to a form's processing when a new record is added. This requires inserting a record in a second table using the same key.
The key for the original table is identity (autonumber). The problem is that I cannot determine the key of the new record added. I assume this may be related to the fact that SQL Server allocates the key after the record is created.
I have searched various forums and cannot find an answer. I understand that @@Identity returns the key of the last record added. This is of no use as it is a multi-user application.
Any suggestions would be appreciated.
I need to make a change to a form's processing when a new record is added. This requires inserting a record in a second table using the same key.
The key for the original table is identity (autonumber). The problem is that I cannot determine the key of the new record added. I assume this may be related to the fact that SQL Server allocates the key after the record is created.
I have searched various forums and cannot find an answer. I understand that @@Identity returns the key of the last record added. This is of no use as it is a multi-user application.
Any suggestions would be appreciated.