>oConn.Execute("Insert into Users (Name) Value ([Fred])") >o= oConn.Execute("Select MAX(User_id) from Users") >? o.Fields(0).Value>But it could of course fail to return the correct User_id if another session snuck in another insertion between the two calls :={