Here is a code that I copied from
www.asp.net
There is also a good forum
And here is a page about stored procedures in access
http://authors.aspalliance.com/hrmal.../20030301.aspx
I'm also a new using this. Most of my codes are done with Dreamweaver. And then used google and asp.net forum and this forum
Sub add_btn_Click(sender As System.Object, e As System.EventArgs)
Dim intRecordsInserted As Integer
Dim sText As String
sText=fname.text
Dim connstr As String
connstr = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=C:\inetpub\wwwroot\webform.mdb"
Dim SQL As String = "INSERT INTO users2 (fname) VALUES ('" & sText & "')"
Dim Conn As New OleDbConnection(connstr)
Dim cmd As New OleDbCommand(SQL, Conn)
Try
Conn.Open()
intRecordsInserted = cmd.ExecuteNonQuery()
label.Text = intRecordsInserted & " record(s) added successfully."
Catch ex As Exception
label.text = "An error has occurred: "
label.text += ex.Message
Finally
Conn.Close()
End Try
End Sub