I am using a ado recordset to insert a new record into a table in SQL server where the primary key is and integer identity column. Does anyone know how I can get the id that SQL assigned to the new record immediately after I call the update function:<br><br>rs.addnew<br> 'do some work<br>rs.update<br>'<br>'<br>'how do I get the id<br>rs.fields("id"?????<br><br>rs.close<br><br>