using a variable to specify excel file in ASP
I am trying to view an Excel page in ASP, but I want to use a variable to determine which file I want to pull. How can I get the below excel file, FILE, to be based on an input variable from the web page?
Set cnnExcel = Server.CreateObject("ADODB.Connection")
cnnExcel.Open "DBQ=" & Server.MapPath("FILE.xls") & ";" & _
"DRIVER={Microsoft Excel Driver (*.xls)};"
Thanks
|