Hello,
I'm getting a "Type Mismatch" in this snippet of code. I'm hoping someone might be able to explain it ...
Dim rsTestlog
Dim arSta()
Dim arVer()
Set objFSO = CreateObject("Scripting.FileSystemObject")
sSQL = "SELECT Status, Version FROM TestLog"
Set connection = CreateObject("ADODB.Connection")
Set rsTestlog = CreateObject("ADODB.Recordset")
sConnString="DRIVER={Microsoft Access Driver (*.mdb)};" & _
"DBQ=" & "C:\data base" & "\test.mdb" & ";"
connection.open = sConnString
rsTestlog.Open sSQL, connection
arVer = rsTestlog.GetRows("Version") <-- Type Mismatch Here
wscript.echo arVer(0)
I'm merely trying to display the contents of arVer. Or, in this case the first instance of arVer.
Thank you in advance,
JohnCR
I'm getting a "Type Mismatch" in this snippet of code. I'm hoping someone might be able to explain it ...
Dim rsTestlog
Dim arSta()
Dim arVer()
Set objFSO = CreateObject("Scripting.FileSystemObject")
sSQL = "SELECT Status, Version FROM TestLog"
Set connection = CreateObject("ADODB.Connection")
Set rsTestlog = CreateObject("ADODB.Recordset")
sConnString="DRIVER={Microsoft Access Driver (*.mdb)};" & _
"DBQ=" & "C:\data base" & "\test.mdb" & ";"
connection.open = sConnString
rsTestlog.Open sSQL, connection
arVer = rsTestlog.GetRows("Version") <-- Type Mismatch Here
wscript.echo arVer(0)
I'm merely trying to display the contents of arVer. Or, in this case the first instance of arVer.
Thank you in advance,
JohnCR