There are some great sites with tons of Free examples.
Try
www.asp101.com or
www.4guysfromrolla.com
Code for the link containig the ID of the record you want to delete
<a href="DeleteOrders.asp?idOrder=<%response.write pIdOrder%>"style="font-family: Arial; color: #003366">Click here to Delete Order Number<%response.write pIDOrder%></a>
Or here is an example of Deleting a record. Your connection to the DB is in OpenDB.asp
<%
' Heather P 2001
' Details: Delete selected order
%>
<%
on error resume next
dim conntemp, rstemp, rstemp2, mySql
call openDb()
'Pulls ID of record you want to delete from form or link on previous page
pIdOrder = getUserInput(request.querystring("idOrder"),10)
'Error handling
if pIdOrder="" then
response.redirect "message.asp?message=You must select the order you want to delete."
end if
' update orders record !
mySql="DELETE RECORD FROM orders1 WHERE idorder=" &pIdorder
set rstemp=conntemp.execute(mySQL)
'Error handling
if err.number <> 0 then
response.redirect "supporterror.asp?error="& Server.Urlencode("Error in DeleteOrderExec2: "&Err.Description)
end if
response.redirect "message.asp?message=The order information has been deleted"
%>