mismatch string
strUpdate = "update tblCustRate set dtRateFrom =" + ndateFrom + _
", dtRateTo =" + ndateUntil+ _
", decHourlyRate=" + nHourlyRate+ _
" where iEmpID =" + iEmpID +_
" and iTaskiD=" + iTaskID +_
" and iProjDetiD=" + iProjDetID
it gives me an error mismatch string. From the data base I am updating numbers like 9/11/2003, 9/10/2004 and 50. But when i use
the code below it works fine. Please explain me the reason. Thanks
strUpdate = "update tblCustRate set dtRateFrom =" & ndateFrom & _
", dtRateTo =" & ndateUntil& _
", decHourlyRate=" & nHourlyRate& _
" where iEmpID =" & iEmpID &_
" and iTaskiD=" & iTaskID &_
" and iProjDetiD=" + iProjDetID
|