Bob, thanks for the funny, and even more thanks for the solution, which
has certainly got me further.
My code now looks like this
Dim objConn
Dim ObjRS
Set objConn = Server.CreateObject("ADODB.Connection")
Set objRS = Server.CreateObject("ADODB.Recordset")
strBaseFilePath = "serverdetails/adotest.xls"
objConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.MapPath(strBaseFilePath) & ";" & _
"Extended Properties=""Excel 8.0;"""
objRS.Open "Select * from DataArea", objConn, adOpenStatic
Which works and i can now actually get to my remote file however.....I
now get this
Microsoft JET Database Engine error '80004005'
The Microsoft Jet database engine cannot open the file ' **path to
file** \ Server Docs\adotest.xls'. It is already opened exclusively by
another user, or you need permission to view its data.
/excel.asp, line 11
I have checked that is not already open and i have confirmed that the
virtual directory can see the file, which i can open by opening the
link to the file via the virtual directory.
I have check the file and it have everyone as full control.
Any ideas? I did try and add a user id and password in the opening of
the datasource, but i can't seem to find the correct syntax.
Thanks again.
|