Thank you Max. That was exactly what I was looking for. :-)
-- Jeff
<cfquery name="enterRecord" datasource="#attributes.DSN#" dbtype="ODBC">
SET NOCOUNT ON
INSERT INTO myTable (name)
VALUES ('#attributes.name#')
SELECT newID = @@IDENTITY
SET NOCOUNT OFF
</cfquery>
<cfset newID = enterRecord.newID>
-Max
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists