How to fix the error (incorrect syntax near ','. )

Soufiane Sahraoui
20
Reputation points
incorrect syntax near ','.
I am working on a small program, but this problem stopped me. When I do the update data, this message appears to me, although the update works in more than one other form within the program.
Please help me.
string d = Date.Value.ToString("yyyy/MM/dd");
string Dinstall = txtdateInstal.Value.ToString("yyyy/MM/dd");
db.ExcuteData("update TBL_Employees Set FName ='"+txtFName.Text+"' ,LName ='" + txtLName.Text + "' ,DateB='" + d + "', PlaceB='" + txtBDaye.Text + "', ID_C= " + cmbCenter.SelectedValue + ", ID_S= " + cmbService.SelectedValue + ",ID_Sec=" + cmbSecture.SelectedValue + ", ID_Grade = " + cmbGrade.SelectedValue + ", DateInstall= '" + Dinstall + "', Credit=" + txtRacid.Text + ", Adress= '" + txtAddress.Text + "', Phone=" + txtPhone.Text + " ,Status = " + status.Text + " where ID_Emp ="+txtMat.Text+" " ," Modified successfully ");