Frank writes "If you need to get the unique ID of the row just inserted returned in the same operation as the insert itself, how would you go about doing it?ASP EX: Function doInsert() sqlStr = "INSERT INTO tab_contacts" sqlStr = sqlStr & " (firstname, lastname, email)" sqlStr = sqlStr & "VALUE('Test', 'Person', 'this@that.com')" insertedID = doExecuteSql(sqlStr)End FunctionFunction doExecuteSql(sInSql) //** DO ALL DIM AND SET ADODB-CONNECTION OBJECTSTUFF //** RUN oDBconnection.execute(sInSql) //** Mysteriously get the ID of the inserted row back //** And return it to the calling function as so: doExecuteSql = mysteriouslyobtainedidvalueEnd FunctionIt would also be of interest to be able to do multiple inserts and get a recordset of id-values returned, preferably sorted by the order of insertions. Is this possible? maybe by creating stored procedures? Can anyone point me down the right path?/Frank"