i am inserting a row in an acces table but I also want to get the id of the last inserted row so that I can use that value. Any ideas on how I can go about it?
Dim iSql As String = "Insert into CompanyDetails (code,description)
02
Connections.MyDataAdapter(iSql)
03
04
Public Shared Function MyDataAdapter(ByVal iSql As String) As OleDb.OleDbDataAdapter
05
Dim dt As New DataTable
06
Dim da As New OleDb.OleDbDataAdapter(iSql, MyConnection)
07
da.Fill(dt)
08
Return da
09
da.Dispose()
10
End Function