Hello,
I'm trying to update a SQL CE table on a Windows Mobile 6.5 device using C#. It seems the following code looks correct, but I get a token error for against the strRoundInitials, stating that the token is invalid.
using (sqlCmd = new SqlCeCommand("UPDATE " + strDateTable + "SET [" + strRoundInitials +
"] = '" + txtDataEntry.Text + "'WHERE [" + strRoundShift + "] = '" + strBarCode + "'", sqlConn))
{ sqlCmd.ExecuteNonQuery();}
Any suggestions?
Loading
VulpesPosted Aug 10, 2014, 11:35 AM
using (sqlCmd = new SqlCeCommand("UPDATE " + strDateTable + " SET [" + strRoundInitials +
"] = '" + txtDataEntry.Text + "' WHERE [" + strRoundShift + "] = '" + strBarCode + "'", sqlConn))
Khan Abrar AhmedPosted Aug 10, 2014, 6:30 AM