ac277
MIS
- May 31, 2008
- 6
Hi,
I have an update query which update the date field with the current system date but the query returns zero.
Can somebody please see if there is anything wrong with my code?
UPDATE tblEmpChange SET tblEmpChange.ToDate = Date()
WHERE tblEmpChange.[cur_Status] Like '*Leave' and IsNull(tblEmpChange.[ToDate])
and tblEmpChange.[EmployeeId] in (Select tblEmpChange.[EmployeeID] From tblEmpChange WHERE tblEmpChange.[cur_Status] = 'Active' and
tblEmpChange.[FromDate] =Date());
I have an update query which update the date field with the current system date but the query returns zero.
Can somebody please see if there is anything wrong with my code?
UPDATE tblEmpChange SET tblEmpChange.ToDate = Date()
WHERE tblEmpChange.[cur_Status] Like '*Leave' and IsNull(tblEmpChange.[ToDate])
and tblEmpChange.[EmployeeId] in (Select tblEmpChange.[EmployeeID] From tblEmpChange WHERE tblEmpChange.[cur_Status] = 'Active' and
tblEmpChange.[FromDate] =Date());