ACCESS frontEnd SQL BackEnd key field

Ernest Grogg
Ernest Grogg used Ask the Experts™
on
Hello,

We have an Access DB that we recently uploaded the tables to SQL Server and we are still using the ACCESS frontend so we are linked to the tables.  I am trying to figure out why the ID field is not populating when a new record is created?

the ID field is the Key field.  In access we still show it to be Field Size: Replication ID and Required.

what am I missing?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ste5anSenior Developer

Commented:
When switching to SQL Server as back-end, there are some important changes.

One of them is: an auto-increment value is no longer available before you save a row. Cause SQL Server can assign it only on the real INSERT action.

See Armen's presentation: The Best of Both Worlds: Access-SQL Server Optimization
Ernest GroggSecurity Management InfoSec

Author

Commented:
So what we are saying is that we have to save the record and then pull it after the .update/.add (saverecord) action?
Senior Developer
Commented:
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Ernest GroggSecurity Management InfoSec

Author

Commented:
great.  I am going to try a few things to see if I can pull the data and then insert it.
Jim Dettman (EE MVE)President / Owner
Most Valuable Expert 2017
Most Valuable Expert 2012

Commented:
<<Replication ID>>

 Just as an FYI....did you (or do you still have) replication turned on?    ReplicationID is not a great data type for a PK if your not doing replication as it's a GUID (16 bytes long).

Jim.
Ernest GroggSecurity Management InfoSec

Author

Commented:
Sorry for not replying...I did have ReplicationID turned on.  I had to turn that off and then change it in SQL to int

got it.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial