Hi ... the date is getting translated by the server into datetime. When i execute my query in query analyser am getting this error "Conversion failed when converting character string to smalldatetime data type."
This is my Query
..
So what can be the correct Query. Help me with this.
Thanks.
This is my Query
Code:
SELECT iCalls_Calls.CALL_ID, iCalls_Calls.REQUESTOR,iCalls_Calls.REQ_DATE,iCall s_Calls.CLOSED_DATE, iCalls_Users.USER_NAME, DESCRIPTION, TYPE, SCOPE, SEVERITY, iCalls_Calls.STATUS_ID, iCalls_Status.STATUS_ID, iCalls_Status.STATUS_LABEL FROM ((iCalls_Calls inner join iCalls_Status on iCalls_Calls.STATUS_ID=iCalls_Status.STATUS_ID) inner Join iCalls_Users on iCalls_Calls.REQUESTOR=iCalls_Users.USER_ID) left outer join iCalls_Messages on iCalls_Calls.CALL_ID=iCalls_Messages.CALL_ID WHERE RESPONSIBLE='" & Session("USER_ID") & "' AND iCalls_Calls.STATUS_ID <> 6 AND iCalls_Calls.REQ_DATE between '" & txtSTdate.Text & "' and '" & txtCLdate.Text & "' ORDER BY iCalls_Calls.CALL_IDSo what can be the correct Query. Help me with this.
Thanks.
