Why is that you are using
_??? That is used only when you want to continue the code on the same line to next line.
Code:
strUpdate = "update tblCustRate set dtRateFrom ='" & ndateFrom & "', dtRateTo = '" & ndateUntil & "', decHourlyRate=" & nHourlyRate & " where iEmpID =" & iEmpID & " and " itaskiD=" & variablename
Your statement is incomplete where it is marked red above.
Check that at your end.
_________________________
- Vijay G
Strive for Perfection