Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

@@Identity In Microsoft Access

Status
Not open for further replies.

rkatt

Programmer
Apr 13, 2006
1
US


How do you use @@Identity in Microsoft Access??

It doesn't seem to be working for me.

First I execute this:
_______________________

INSERT INTO table (field1, field2)
VALUES ('value1', 'value2')
_______________________

Then this:
_______________________

SELECT @@IDENTITY
_______________________

but the second SQL always returns 0 (zero), even though their primary keys (identities) are not

How do you use @@IDENTITY with Access????


 
you will have a much better chance of getting an answer to this question in one of the microsoft access forums

r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top