im am trying out this code but it keeps giving an error msg but i cant see where the error is...please help
query = New OleDbCommand("INSERT INTO studenttable(sname,scourse,syear,ssemestor,sgrade)values('" & TextBox1.Text & " ',' " & TextBox2.Text & " ',' " & TextBox3.Text & " ',' " & TextBox4.Text & " ',' " & TextBox5.Text & " )", con)
con.Open()
query.ExecuteNonQuery()
con.Close()