Syntax error with Access database
- From: DR Gorden <drgorden@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 13 Aug 2005 15:09:47 GMT
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 SubI 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 .
- Follow-Ups:
- Re: Syntax error with Access database
- From: DR Gorden
- Re: Syntax error with Access database
- From: Mark Ashton
- Re: Syntax error with Access database
- From: Paul Clement
- Re: Syntax error with Access database
- From: W.G. Ryan MVP
- Re: Syntax error with Access database
- Prev by Date: Re: Error on adding a record to an Access Database.
- Next by Date: Re: Syntax error with Access database
- Previous by thread: ADO.NET and SQL, Oracle
- Next by thread: Re: Syntax error with Access database
- Index(es):
Relevant Pages
|