i had problem in inserting data into a table in access database.i am using visual studio2005 for the projects.here is my code
Dim strConnection As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=" _
& "c:\Users\BELLCONSULT\Documents\LIBRARY2.mdb "
Dim cn As OleDb.OleDbConnection = New OleDb.OleDbConnection(strConnection)
Dim cmd As New OleDb.OleDbCommand
With cmd
.CommandText = "INSERT INTO PRACTISE(ID,NAMES,AGE,SEX,DATE_BIRTH,LEVEL) VALUES('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & ")"
.Connection = cn
.Connection.Open()
.ExecuteNonQuery()
.Connection.Close()
End With