T
Tim Johnson
Hi there,
I recently migrated the backend of a FE/BE Access setup to a SQL Server.
The transition of data has gone fairly smoothly.
However, in testing the FE seems to be having some growing pains
(e.g. recordsets now need the 'dbSeeChanges' option added, etc.) One such
problem, which I have found a temporary solution for is as follows:
In Access, when adding a new record to a recordset, the Autonumber field
automatically generates, allowing you to assign this ID to a variable in code
PRIOR to update. SQL server does not, in fact, it doesn't appear to want me
to assign this ID to the variable after update, either. I am currently using
the DMax function, and it seems to be working fine, but am not entirely
certain that this is the best/most reliable way to obtain the most recently
generated ID.
Any suggestions?
Thanks in advance,
Tim
I recently migrated the backend of a FE/BE Access setup to a SQL Server.
The transition of data has gone fairly smoothly.
However, in testing the FE seems to be having some growing pains
(e.g. recordsets now need the 'dbSeeChanges' option added, etc.) One such
problem, which I have found a temporary solution for is as follows:
In Access, when adding a new record to a recordset, the Autonumber field
automatically generates, allowing you to assign this ID to a variable in code
PRIOR to update. SQL server does not, in fact, it doesn't appear to want me
to assign this ID to the variable after update, either. I am currently using
the DMax function, and it seems to be working fine, but am not entirely
certain that this is the best/most reliable way to obtain the most recently
generated ID.
Any suggestions?
Thanks in advance,
Tim