D
DR Gorden
I fill a dataset (dsGRAD) using the Jet 4.0 provider and the
OleDbDataAdapter with data from an Access database table containing 19
columns. Each column is bound to a textbox on a form. Changes can be
made to the dataset text boxes with no problems but I get a syntax
error attempting to update or insert into a Access database. I have not
yet attempted a Delete operation.
The code I am using follows:
Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnUpdate.Click
Try
daGRAD.Update(dsGRAD, "GRADUATE") (error on this line)
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
bLoading = True
dsGRAD.GRADUATE.Clear()
daGRAD.Fill(dsGRAD, "GRADUATE")
bLoading = False
txtClass.Focus()
End Sub
I am using the generated insert, delete, update commands provided when
the data adapter is generated.
The syntax error generated is identical to the error message mentioned
in the message from Dustin Wilson dated 12 Aug 2005 to this group with
the exception of the different names and locations of the database.
Words of wisdom would be greatly appreciated
Thanks
Don G
OleDbDataAdapter with data from an Access database table containing 19
columns. Each column is bound to a textbox on a form. Changes can be
made to the dataset text boxes with no problems but I get a syntax
error attempting to update or insert into a Access database. I have not
yet attempted a Delete operation.
The code I am using follows:
Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnUpdate.Click
Try
daGRAD.Update(dsGRAD, "GRADUATE") (error on this line)
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
bLoading = True
dsGRAD.GRADUATE.Clear()
daGRAD.Fill(dsGRAD, "GRADUATE")
bLoading = False
txtClass.Focus()
End Sub
I am using the generated insert, delete, update commands provided when
the data adapter is generated.
The syntax error generated is identical to the error message mentioned
in the message from Dustin Wilson dated 12 Aug 2005 to this group with
the exception of the different names and locations of the database.
Words of wisdom would be greatly appreciated
Thanks
Don G