J
jswidorski
I have 2 sets of code that are basically the same code one is ASP the other
is VBS. Both Access that same DSN, but the ASP code gives me an error
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'OpenSchema'
I don't understand why the ASP does not work.
Thanks.
'======================
' ASP that DOES NOT Work
'======================
set conExcel = Server.CreateObject("ADODB.Connection")
strConnExcel = "DSN=Excel_AC2;"
conExcel.Open strConnExcel
set xlSheets = conExcel.OpenSchema(20)
while NOT xlSheets.EOF
response.Write xlSheets.Fields("TABLE_NAME").Value & "<BR>"
xlSheets.MOVENEXT
wend
xlSheets.Close
'==============
' VBS that Works
'==============
set conExcel = CreateObject("ADODB.Connection")
strConnExcel = "DSN=Excel_AC2;"
conExcel.Open strConnExcel
set xlSheets = conExcel.OpenSchema(20)
while NOT xlSheets.EOF
wscript.echo xlSheets.Fields("TABLE_NAME").Value
xlSheets.MoveNext
wend
xlSheets.Close
is VBS. Both Access that same DSN, but the ASP code gives me an error
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'OpenSchema'
I don't understand why the ASP does not work.
Thanks.
'======================
' ASP that DOES NOT Work
'======================
set conExcel = Server.CreateObject("ADODB.Connection")
strConnExcel = "DSN=Excel_AC2;"
conExcel.Open strConnExcel
set xlSheets = conExcel.OpenSchema(20)
while NOT xlSheets.EOF
response.Write xlSheets.Fields("TABLE_NAME").Value & "<BR>"
xlSheets.MOVENEXT
wend
xlSheets.Close
'==============
' VBS that Works
'==============
set conExcel = CreateObject("ADODB.Connection")
strConnExcel = "DSN=Excel_AC2;"
conExcel.Open strConnExcel
set xlSheets = conExcel.OpenSchema(20)
while NOT xlSheets.EOF
wscript.echo xlSheets.Fields("TABLE_NAME").Value
xlSheets.MoveNext
wend
xlSheets.Close