Hello all,
I'm not sure whether this question should be for this forum or should it belong to SQL forum, so please bear with me here...
Above is a code I use to do batch update for a product page and it's working just fine. However, I now would like to add another function to delete product(s) if one or more DELETE checkbox(s) of the product(s) are selected, then continue to update other products at the same time.
How would I go from the above code to do just that?
Thanks!
I'm not sure whether this question should be for this forum or should it belong to SQL forum, so please bear with me here...
Code:
rs.MoveFirst
while not rs.eof
ProductID=rs("ProductID")
if Session("esku") = 1 then
rs("SKU")=Request("SKU" & ProductID)
end if
if Session("ename") = 1 then
rs("Name")=Request("Name" & ProductID)
end if
if Session("ecost") = 1 then
rs("Cost")=Request("Cost" & ProductID)
end if
if Session("estock") = 1 then
rs("Stock")=Request("Stock" & ProductID)
end if
if Session("especial") = 1 then
rs("Special")=DoCheck(Request("Special" & ProductID))
end if
if Session("eactive") = 1 then
rs("Active")=DoCheck(Request("Active" & ProductID))
end if
if Session("enew") = 1 then
rs("New")=DoCheck(Request("New" & ProductID))
end if
rs.update
rs.Movenext
wend
Above is a code I use to do batch update for a product page and it's working just fine. However, I now would like to add another function to delete product(s) if one or more DELETE checkbox(s) of the product(s) are selected, then continue to update other products at the same time.
How would I go from the above code to do just that?
Thanks!