Hello Everyone
I want to insert values into MS Access database through VB.NET in Visual Studio 2005 . I have used the following code which is not working.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim con As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLED B.4.0;Data Source=DSA.mdb")
con.Open()
Dim cmd As New OleDb.OleDbCommand("insert into users lname='" & TextBox2.Text & "' and lpwd='" & TextBox3.Text & "'" & "and Username='" & TextBox4.Text, con)
Please help me