Sounds like you are using SQL Server, so ... SELECT @@IDENTITY AS newid
You can also put that in an INSERT trigger, so that the INSERT itself will return that new id. --- Ben -----Original Message----- From: Phill B [mailto:[EMAIL PROTECTED] Sent: Friday, December 10, 2004 2:59 PM To: CF-Talk Subject: Return id after insert I cant remember how to return the id from an insert. I have searched but I can't find what I'm looking for. Not to mention people keep buggin me making my job harder than it should be. :-| Anyway, it is some thing like @@identity but I cant remember. Little help? -- Phillip B. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - RUWebby http://www.ruwebby.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187073 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

