SCassidy2010
New member
- Joined
- Mar 6, 2010
- Messages
- 4
- Programming Experience
- 1-3
Hi,
I'm currently writing a vb.net program in visual studio 2005 to save job details to a access 2007 database. I have one form so far to add customer details, it works fine saving, editing etc. I have a new form to add specific job details but anytime I try to update to the database I get this
I haven't a clue why this is coming up, or what it means!! at the min I have 3 data adapters adding different info to the dataset (one for adding a table with job prices, another for adding customer records for a combo box and finally a table to store the job details) - could this be causing a problem?
I'm currently writing a vb.net program in visual studio 2005 to save job details to a access 2007 database. I have one form so far to add customer details, it works fine saving, editing etc. I have a new form to add specific job details but anytime I try to update to the database I get this
VB.NET:
System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement.
at System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
at System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable)
at projCDiTNi.frmAddDataRecoveryJob.btnConfirm_Click(Object sender, EventArgs e) in D:\HND Computing\Year 2\Assignments\SDP1\CDiTNi\solnCDiTNi\projCDiTNi\frmAddDataRecoveryJob.vb:line 132
I haven't a clue why this is coming up, or what it means!! at the min I have 3 data adapters adding different info to the dataset (one for adding a table with job prices, another for adding customer records for a combo box and finally a table to store the job details) - could this be causing a problem?