Does anyone see what I am doing wrong?
I can Insert a single field.... But when I try and insert 2 fields I get this error. Syntax error (missing operator) in query expression I am trying to do this in VB 2005.
InsertCmd = New System.Data.OleDb.OleDbCommand("Insert Into Result (Ani, Xdate, Cdate, Xamount, Camount, Difference) Values ('" & txtAni.Text & "'," & txtXdate.Text & ",'" & txtCDate.Text & ",'" & txtXAmount.Text & ",'" & txtCAmount.Text & ",'" & txtDifference.Text & "')", dbconnection)
InsertCmd.ExecuteNonQuery()
I can Insert a single field.... But when I try and insert 2 fields I get this error. Syntax error (missing operator) in query expression I am trying to do this in VB 2005.
InsertCmd = New System.Data.OleDb.OleDbCommand("Insert Into Result (Ani, Xdate, Cdate, Xamount, Camount, Difference) Values ('" & txtAni.Text & "'," & txtXdate.Text & ",'" & txtCDate.Text & ",'" & txtXAmount.Text & ",'" & txtCAmount.Text & ",'" & txtDifference.Text & "')", dbconnection)
InsertCmd.ExecuteNonQuery()