Home | Advertising Info84 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, March 14, 2025  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 



We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: Re: Deleting multiple records in SQL DB
From: cybersox
Date: 12/14/1999 2:30:46 AM
IP: 202.139.88.53



 

Here is how you do it. However, you have to use the command object.

Set conContact = Server.CreateObject("ADODB.Connection")
conContact.Open "DSN"
Set cmdDC = Server.CreateObject("ADODB.Command")
cmdDC.ActiveConnection = conContact
Set RecordSet = Server.CreateObject("ADODB.RecordSet")
SQL = "SELECT * FROM [Table]
cmdDC.CommandText = SQL
RecordSet.Open cmdDC, , 0, 2

For Each Item in Request.form("delete")
Item = Cint(Item)
--Move to first record
If Not RecordSet.BOF Then
RecordSet.MoveFirst
--Find the record we want to delete
Do Until RecordSet.Fields("ID") = Item
RecordSet.MoveNext
Loop
RecordSet.Delete
RecordSet.Requery
end if
Next
RecordSet.Close
Set RecordSet = Nothing
Set cmdDC = Nothing
conContact.Close
Set conContact = Nothing

Previous Message

Follow Up - Re: Deleting multiple records in SQL DB - Charles 12/29/1999 12:42:59 PM


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com