I\'m adding a record like this:
Dim pathString As String = HttpContext.Current.Request.MapPath(\"Banking.mdb\") Dim odbconBanking As New OleDbConnect
"SELECT @@IDENTITY" just after the insertion should work with Microsoft.Jet Provider.
"SELECT @@IDENTITY"