Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004
    Posts
    2

    Question Unanswered: Access equivalent to @@identity???

    Hi,
    I am trying to get the id of the record that was just inserted into the table. Unfortunately, I have to use Microsoft Access and @@identity will not work. Is there some other command that performs the same operation? I am hesitant to use MAX().
    Your comments are greatly appreciated.
    Thanks.

  2. #2
    Join Date
    Feb 2004
    Posts
    2
    Sorry, I didn't see a forum for Microsoft Access. Maybe this topic should be moved to "Other"??

  3. #3
    Join Date
    Jun 2003
    Location
    USA
    Posts
    1,032
    4GuysFromRolla.com : ASP FAQS : Databases, General
    How do I get the record number of a just added record, using an Access database table? by Bill Wilkinson - 11/3/2000
    http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=79

    ADO FAQ - Q9) How do I get the AutoNumber (or Identity) for a newly inserted record?
    http://www.able-consulting.com/ADO_Faq.htm#Q9

    INFO: Identity and Auto-Increment Fields in ADO 2.1 and Beyond
    http://support.microsoft.com/support.../q233/2/99.ASP

    INFO: Identity (AutoIncrement) Columns in ADO or RDS
    http://support.microsoft.com/support.../q195/9/10.asp

    User Tips: Getting the ID of the Just Inserted Database Record by Dan H. - 12/26/2000
    http://www.4guysfromrolla.com/webtec...122600-1.shtml
    J. Paul Schmidt, Freelance Web and Database Developer
    www.Bullschmidt.com
    Access Database Sample, Web Database Sample, ASP Design Tips

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •