pelegk1
03-29-2004, 07:38 AM
i am doing this :
SQL = "SELECT MAX(id) as lastNum FROM DonationDb "
RS.Open SQL,Conn,1,2
if request("DonationID")="" then
id=0
Else
id=int(rs("lastNum"))+1
end if
Response.Write "donationID=" & id & "&"
SQL = "INSERT INTO DonationDb SET ID='" & id & "'"
RS.Open SQL,Conn,1,2 (***)
when i try to dothe second rs.opne(***)
i get the message :
Operation is not allowed when the object is open.
why is that?>what to do?thanks in advance
peleg
SQL = "SELECT MAX(id) as lastNum FROM DonationDb "
RS.Open SQL,Conn,1,2
if request("DonationID")="" then
id=0
Else
id=int(rs("lastNum"))+1
end if
Response.Write "donationID=" & id & "&"
SQL = "INSERT INTO DonationDb SET ID='" & id & "'"
RS.Open SQL,Conn,1,2 (***)
when i try to dothe second rs.opne(***)
i get the message :
Operation is not allowed when the object is open.
why is that?>what to do?thanks in advance
peleg