Can anyone help with this? Here is the code I am using. The problem
is, where it checks if a file exists, it always goes to else. Even if
the file is there, it won't open the file, goes straight to else part
of statement.
<%
If Session("strLog ID") = "" Then
Response.Redire ct("http://website/pages/login.asp")
Else
strfile = Request.Form("m onth") & Request.Form("d ay") & " Misses" &
".xls"
Set fs = Server.CreateOb ject("Scripting .FileSystemObje ct")
If fs.FileExists(" http://website/webreports/Misses/" & strfile) THEN
Response.Redire ct("http://website/webreports/Misses/" & strfile)
Else
Response.Redire ct("http://website/pages/missedreport.as p")
End If
End If
%>
is, where it checks if a file exists, it always goes to else. Even if
the file is there, it won't open the file, goes straight to else part
of statement.
<%
If Session("strLog ID") = "" Then
Response.Redire ct("http://website/pages/login.asp")
Else
strfile = Request.Form("m onth") & Request.Form("d ay") & " Misses" &
".xls"
Set fs = Server.CreateOb ject("Scripting .FileSystemObje ct")
If fs.FileExists(" http://website/webreports/Misses/" & strfile) THEN
Response.Redire ct("http://website/webreports/Misses/" & strfile)
Else
Response.Redire ct("http://website/pages/missedreport.as p")
End If
End If
%>
Comment