How do I get the auto number after an INSERT in Ms Access?

Posted by Justin Tanner on Stack Overflow See other posts from Stack Overflow or by Justin Tanner
Published on 2010-03-17T00:57:37Z Indexed on 2010/03/17 1:01 UTC
Read the original article Hit count: 342

Filed under:
|

I have query in vbscript like this:

DoCmd.RunSQL "INSERT INTO table (value) VALUES ('example')"

( with an auto incremented primary key called id)

How can I get the auto incremented id generated by this insert?

© Stack Overflow or respective owner

Related posts about ms-access

Related posts about vbscript