I'm trying to count the number of records in an error log table and display the result to the screen.
Can anyone see the error?
Code:
Dim sqlCount, rsCount
set rsCount = CreateObject("ADODB.Recordset")
rsCount.open "tblErrorLog",objConn1
sqlCount="SELECT COUNT(*) FROM tblErrorLog"
set rsCount= objConn1.execute(sqlCount)
wscript.echo rsCount("TotCount")
Can anyone see the error?