Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 How get the new pk from field based in autonumber ?

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-03-12 : 09:42:29
Fabio writes "Hello!

I would like to know how I get the PK field autonumber value after the INSERT SQL command?"

Nazim
A custom title

1408 Posts

Posted - 2002-03-12 : 10:32:01
@@identity should help you.

select @@identity



--------------------------------------------------------------
Go to Top of Page
   

- Advertisement -