troubleshooting Question

Migrating Access Back-End to SQL Server - Modifying Access Forms

Avatar of NateR78
NateR78Flag for United States of America asked on
Microsoft AccessVisual Basic ClassicMicrosoft SQL Server 2005
8 Comments1 Solution319 ViewsLast Modified:
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...
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros