This topic is locked
[SOLVED]

 Add archive button to list page

1/19/2010 12:15:58 PM
ASPRunnerPro General questions
S
stealthwifi author

Hello,
I need to add a new button to the list page, when clicked it needs to delete the selected records and send them to another table. Previously I had used the delete button for this with event code (below) except I was just told they need to be able to delete as well and some might not have delete permissions but still need to archive.
Any ideas how I can add this archive button to the list page?
Event Code from Before Record Deleted

strSQLSave = "INSERT INTO AllisonArchive (Type, Number, Notes, Common_Trade_Name, ProductNumber, Manufacturer, Location_dept, ContainerSize, Keywords, Distributor, ChemicalClass, MSDSNumber, ValidAsOfDate, AddedToSystem, FileLocation, Image, Image2) SELECT Type, Number, Notes, Common_Trade_Name, ProductNumber, Manufacturer, Location_dept, ContainerSize, Keywords, Distributor, ChemicalClass, MSDSNumber, ValidAsOfDate, AddedToSystem, FileLocation, Image, Image2 FROM " & strTableName & " where " & where

dbConnection.Execute strSQLSave
Sergey Kornilov admin 1/20/2010

Here is a code sample that allows to email selected records:

http://www.xlinesoft.com/asprunnerpro/docs/email_selected_records.htm
You can modify it for your needs easily.