A
asdf
Hello
I've been trying to get data from excel, but haven't been successful. First
I had the excel file on my desktop and I wrote the absolute path for the
source but I got an error about the path so I put the file in the same folder
as the frontpage page I am making and I still can't get the data. The error
is always at the conn.open line.
Which one should I use? The one with the semicolons at the end? Either one?
"Extended Properties=""Excel 8.0;HDR=YES"""
"Extended Properties=""Excel 8.0;HDR=Yes;"";"
Can someone tell me what is wrong by looking at this?
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "ClinicWard.xls;Extended Properties=""Excel 8.0;HDR=No"""
'set rs=Server.CreateObject("ADODB.recordset")
'rs.Open "Select * from [Sheet1$]", conn
set rs=conn.Execute("Select*From [Sheet1$]")
....
%>
Thank you for your time.
I've been trying to get data from excel, but haven't been successful. First
I had the excel file on my desktop and I wrote the absolute path for the
source but I got an error about the path so I put the file in the same folder
as the frontpage page I am making and I still can't get the data. The error
is always at the conn.open line.
Which one should I use? The one with the semicolons at the end? Either one?
"Extended Properties=""Excel 8.0;HDR=YES"""
"Extended Properties=""Excel 8.0;HDR=Yes;"";"
Can someone tell me what is wrong by looking at this?
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "ClinicWard.xls;Extended Properties=""Excel 8.0;HDR=No"""
'set rs=Server.CreateObject("ADODB.recordset")
'rs.Open "Select * from [Sheet1$]", conn
set rs=conn.Execute("Select*From [Sheet1$]")
....
%>
Thank you for your time.