D
deadtrees via AccessMonster.com
I just upsized my db from access to SQL server and I've encountered some
problems with my audit trail code. Turns out that for changes to existing
records, everything works fine. For creation of new records, there's a major
fail and I get a runtime error in the vba because I have the code set to run
in the beforeupdate event.
It's due to the fact that Access creates a new primary key when you first
enter data into a record, however SQL doesn't create an identity until after
you save the record.
Is there any way to change this behavior in SQL or is there a way I can move
my vba to trigger on a different event.
thanks in advance.
problems with my audit trail code. Turns out that for changes to existing
records, everything works fine. For creation of new records, there's a major
fail and I get a runtime error in the vba because I have the code set to run
in the beforeupdate event.
It's due to the fact that Access creates a new primary key when you first
enter data into a record, however SQL doesn't create an identity until after
you save the record.
Is there any way to change this behavior in SQL or is there a way I can move
my vba to trigger on a different event.
thanks in advance.