Access 2000 should have @@identity as well.  Try it out.

-----Original Message-----
From: Shahzad.Butt [mailto:[EMAIL PROTECTED]
Sent: November 28, 2003 6:25 AM
To: CF-Talk
Subject: Getting last inserted idenity value

   

Hi

I am using CFMX and Access2000. In my action page I've got two insertion
queries one inserts in table1 and other one inserts in table2. Both of
these tables has got primary key as autoincrement number. Second query
needs to add the primary key generated from first query as a foreign
key. How would I get the PK of the record just inserted. I know in
SQLServer we could use @@IDENTITY but unfortunately I am using access at
the moment

Thanks

Shahzad.Butt
Ph:  +44 (0) 1992 701 722
Fax: +44 (0) 1992 701 604

  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to