The following code uses oServer to create an output file which returns a logical true if successful. The code executes and produces the file, the response.write prints True on the form but the if statement evaluates to false. I have tried about a dozen variations on this code but can't seem to get it right. Can someone help?
Thanks
Thanks
Code:
' -- Create the output file and create a link if successful --
if response.write(oServer.TryMERE(cReportName,cOutputFile,sql)) then
response.write("<a href='\contactmanager\output\" & session("username") & ".pdf'>Export file generated. Click here to download.</a>")
else
response.write("File could not be processed.")
response.end
end if