For reasons of sheer volume and expected growth, I am working on modifying an Access custom application that currently connects to an Access backend database, so that the backend data can be migrated to SQL Server. So far, I've run into two issues:
(1) Since the identity field isn't populated until after the record is saved, I need for my form to be able to obtain the identity of the most recently inserted record. What is the most efficient way to accomplish this (either via a VBA script or some other means) and time it in such a way that the identity is available as soon as the form is opened in "new record" mode?
(2) Subforms don't work as expected, probably for the same reason that affects issue #1 above. Is there any way to fix this behavior so I can still add records to a subform that is linked to the main form via the main form's primary key?
Thanks for your help...