There is probably a better way to do this and with the deadline for this project sneeking up on me, I am open to anything. I am performing a query based off a passed variable value. The variable is seeing the value as the value plus quotes. I need to strip the quote marks before I can use the value in the query. To do this I have the following lines of code.
<%strTitle=Request.QueryString(Trim(strTitle))
strTitle=left(strTitle,len(Trim(strtitle))-1)
strTitle=right(strTitle,len(Trim(strtitle))-1)%>
As you can see I am reqerying the variable and then pulling off the quotes on each end. It worked perfectly Tuesday evening when I left, but on Wedness day morning I suddenly started getting an error that says:
Error Type:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'left'
If I comment these two lines out the code works fine (except for the correct query results which ends up returning nothing since the variable has quotes included)
Any ideas???
<%strTitle=Request.QueryString(Trim(strTitle))
strTitle=left(strTitle,len(Trim(strtitle))-1)
strTitle=right(strTitle,len(Trim(strtitle))-1)%>
As you can see I am reqerying the variable and then pulling off the quotes on each end. It worked perfectly Tuesday evening when I left, but on Wedness day morning I suddenly started getting an error that says:
Error Type:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'left'
If I comment these two lines out the code works fine (except for the correct query results which ends up returning nothing since the variable has quotes included)
Any ideas???