I am trying to create a create button in visual basic so the record goes into my database but it get this error:
System.Data.OleDb.OleDbException: 'Syntax error in INSERT INTO statement.
my code is here and i get the error on da.Update(ds, "Test")
Dim cb As New OleDb.OleDbCommandBuilder(da)
Dim dsNewRow As DataRow
dsNewRow = ds.Tables("Test").NewRow()
dsNewRow.Item("Username") = txtUsername.Text
dsNewRow.Item("Password") = txtPassword.Text
dsNewRow.Item("Email Address") = txtEmailAddress.Text
ds.Tables("Test").Rows.Add(dsNewRow)
da.Update(ds, "Test")
any help would be amazing.