MySqlCommand =
I am using MySql database.
Thanks
myCommand = new MySqlCommand("update hs_hr_attendance set punchout_time = " + "SubTime(Now(), '03:30:00')" + " where DATE_FORMAT(punchin_time,'%d/%m/%Y') = '" + _dt.ToString("dd/MM/yyyy") + "' and employee_id = " + empno + ")", con);
Prasant JinagaPosted Sep 8, 2011, 8:27 AM
You are using one more bracket in the Query over here...
empno + ")", ---> Remove this extra bracket..It will work.
Thanks,
Prasant
Mark it Correct if it helps U :)