I am trying to do a multiple insert of records into a database and I am getting an error on my submition. the error I am getting is below. I am new to ASP and have never done a multiple insert.
Error Type:
ADODB.Recordset (0x800A0CB3)
Object or provider is not capable of performing requested operation.
/am1st/MyStuff/updatetest/maintain1.asp, line 57
Here is my code.
<%
if request("Selected2"
= "1" Then
dbrs2.open ("Select * From Timesheet where userID = '" & request.form("employee"
& "' and month = '" & request.form("month"
& "'" ), dbconn, 0, 1
dbrs2.movefirst
Dim x
x = 1
do while NOT dbrs2.EOF
''dbrs2("date"
=request("date" & x)
dbrs2("hour"
=request("hour" & x) //This is line 57
''dbrs2("code"
=request("code" & x)
dbrs2.update
dbrs2.movenext
x = x + 1
loop
End if
%>
Error Type:
ADODB.Recordset (0x800A0CB3)
Object or provider is not capable of performing requested operation.
/am1st/MyStuff/updatetest/maintain1.asp, line 57
Here is my code.
<%
if request("Selected2"
dbrs2.open ("Select * From Timesheet where userID = '" & request.form("employee"
dbrs2.movefirst
Dim x
x = 1
do while NOT dbrs2.EOF
''dbrs2("date"
dbrs2("hour"
''dbrs2("code"
dbrs2.update
dbrs2.movenext
x = x + 1
loop
End if
%>