Hi Olaf,
To insert a record
In ADO:
Dim conn As New ADODB.Connection
conn.Open connextString
conn.Execute insertSql
conn.Close
Set conn = Nothing
In ADO.NET
Dim conn As New OleDbConnection(connectionString)
conn.Open()
Dim command As OleDbCommand = conn.CreateCommand()
command.CommandType = CommandType.Text
command.CommandText = insertSql
command.ExecuteNonQuery()
conn.Close()
So what's big difference?
HTH
Elton Wang
el********@hotmail.com -----Original Message-----
Hello,
i am wondering if there is a simple way to insert a new
record into an MSAccess db and read out the newly created auto-ID field.
Using ASP this wasrather simple, but in ASP.NET (VB) it seems to have
become rathercomplex????
cheers, Olaf
.