Can someone please tell me what's wrong with the update code below? The error is: "Object or provider is not capable of performing requested operation"
************
<html>
<head>
<title> msdasql - microsoft excel driver (*.xls) - testing update </title>
<script language=vbscript>
sub goupdate()
set oConn=createobject("ADODB.Connection")
oConn.open "Driver={Microsoft Access Driver (*.mdb)};DBQ=H:\Reports CC\folder.mdb;"
sCmd="select * from [Intranet_Counter]"
Set rs = oConn.Execute(sCmd)
Total= rs(0)+1
'document.write(Total)
rs(0) = Total+1
rs.Update
document.write "This page has been visited " & rs(0).value & " times. <p>"
rs.close
set rs=nothing
oConn.close
set oConn=nothing
end sub
</script>
</head>
<body onload="goupdate()">
</body>
</html>
********
Thanks.
************
<html>
<head>
<title> msdasql - microsoft excel driver (*.xls) - testing update </title>
<script language=vbscript>
sub goupdate()
set oConn=createobject("ADODB.Connection")
oConn.open "Driver={Microsoft Access Driver (*.mdb)};DBQ=H:\Reports CC\folder.mdb;"
sCmd="select * from [Intranet_Counter]"
Set rs = oConn.Execute(sCmd)
Total= rs(0)+1
'document.write(Total)
rs(0) = Total+1
rs.Update
document.write "This page has been visited " & rs(0).value & " times. <p>"
rs.close
set rs=nothing
oConn.close
set oConn=nothing
end sub
</script>
</head>
<body onload="goupdate()">
</body>
</html>
********
Thanks.