In SQL server one can use @@Identity to retrieve the id of the last inserted
record (although there are situations when it is not appropriate). What is
the best way to retrieve the id of the last inserted record in Access? I'd
appreciate any pointers.

Thanks,
J.S.

--

Re: ASP/VBScript: Retrieving ID of last inserted record in Access by Bob

Bob
Sat Aug 20 09:22:18 CDT 2005

J.S. wrote:
> In SQL server one can use @@Identity to retrieve the id of the last
> inserted record (although there are situations when it is not
> appropriate). What is the best way to retrieve the id of the last
> inserted record in Access? >
The same way. Jet 4.0 supports @@IDENTITY. See
http://www.aspfaq.com/show.asp?id=2174

HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"



Re: ASP/VBScript: Retrieving ID of last inserted record in Access by J

J
Sat Aug 20 21:37:50 CDT 2005

Thanks, Bob!

J.S.

--

"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
news:%23pkuLKZpFHA.1996@TK2MSFTNGP10.phx.gbl...
> The same way. Jet 4.0 supports @@IDENTITY. See
> http://www.aspfaq.com/show.asp?id=2174
>
> HTH,
> Bob Barrows
> --
> Microsoft MVP - ASP/ASP.NET