jon24422531
Technical User
Hi
I am trying to create a link that will open in Word, but I am already out of my depth....
I have a table that lists Customer ID's and a path to a word document:
S:\Customer Documents\Customer Information Files\Gosport Loaders [G1] CIF.doc
I then select that using a SQL statement:
As you can see, I have tried to allow for the spaces with %20, but in IE it also replaces the % with %2520 !
I then display the result:
Despite all that, it will not open the link, where am I going wrong (apart from believing that I can write ASP and HTML code)
Many thanks
Jonathan
I am trying to create a link that will open in Word, but I am already out of my depth....
I have a table that lists Customer ID's and a path to a word document:
S:\Customer Documents\Customer Information Files\Gosport Loaders [G1] CIF.doc
I then select that using a SQL statement:
Code:
strSQL2 = "select Replace(FileName1, ' ', '%20') from sikbase..KnowledgeBase where custid = '" & CustID & "'"
rsData2.Open strSQL2, MyConn
I then display the result:
Code:
<%if rsData2.eof then%>
<FONT SIZE="+1" COLOR="RED">There is no CIF Link available.</FONT>
<%else%>
<table border='0'>
<%Do While not rsData2.EOF
Response.Write "<tr>"
for each fieldItem in rsData2.fields
Response.Write "<td><a href=" & fieldItem.value & ">Link Here to Word Doc</a></td>"
next
Response.Write "</tr>"
rsData2.MoveNext
Loop%>
</table>
<%end if%>
Despite all that, it will not open the link, where am I going wrong (apart from believing that I can write ASP and HTML code)
Many thanks
Jonathan