Hi Everybody!
I try to delete more than one record in a single operation with this script,
but it only deletes one record at a time, could someone tell me what I'm
doing wrong here?
<%@LANGUAGE="VBSCRIPT"%>
<!-- #include file="adovbs.inc" -->
<%
Set Connect = Server.CreateObject("ADODB.Connection"
Connect.Open "dsn=products;"
Set RecSet = Server.CreateObject("ADODB.Recordset"
Radera = "SELECT * FROM tblProducts WHERE KatIDX LIKE '3'"
RecSet.Open Radera, Connect, adOpenStatic, adLockOptimistic
%>
<%do until RecSet.EOF%>
<%for each x in RecSet.Fields%>
<%RecSet.Delete%>
<%next
RecSet.MoveNext%>
<%loop
RecSet.close
Connect.close
%>
Cheers
Magnus
I try to delete more than one record in a single operation with this script,
but it only deletes one record at a time, could someone tell me what I'm
doing wrong here?
<%@LANGUAGE="VBSCRIPT"%>
<!-- #include file="adovbs.inc" -->
<%
Set Connect = Server.CreateObject("ADODB.Connection"
Connect.Open "dsn=products;"
Set RecSet = Server.CreateObject("ADODB.Recordset"
Radera = "SELECT * FROM tblProducts WHERE KatIDX LIKE '3'"
RecSet.Open Radera, Connect, adOpenStatic, adLockOptimistic
%>
<%do until RecSet.EOF%>
<%for each x in RecSet.Fields%>
<%RecSet.Delete%>
<%next
RecSet.MoveNext%>
<%loop
RecSet.close
Connect.close
%>
Cheers
Magnus