%
strAccessLevel = session("AccessLevel")
strUserName2 = session("userName")
strId = request("Id")
' Create a recordset object to store specific table information
Set objrs = Server.CreateObject("ADODB.Recordset")
SQL = "Select * From TblWishList where Id =" & strId
'Set the recordset object equal to the SQL query string
objrs.Open SQL, objADO, 1, 3
if not objrs.EOF then
strId = objrs("Id")
strType = objrs("PropertyType")
strTerms = objrs("PropertyTerms")
strLowPrice = objrs("LowPrice")
strHighPrice = objrs("HighPrice")
strTotalFt = objrs("TotalFt")
strBedrooms = objrs("Bedrooms")
strBathrooms = objrs("Bathrooms")
strState = objrs("State")
strCity = objrs("City")
strZip = objrs("Zip")
strCountry = objrs("Country")
end if
if Request.Form <> "" then
straction = request("cmdAction")
if strAction="Yes" then
Set objRS = Server.CreateObject("ADODB.Recordset")
SQL = "Delete * From TblWishList where Id =" & strId
'Set the recordset object equal to the SQL query string
objRS.Open SQL, objADO, 1, 3
msg = "The selected wish list entry has been deleted.
Click here to view your entire wish list.
"
end if
if strAction = "No" then
msg = "The selected wish list entry has NOT been deleted.
Click here to view your entire wish list.
" end if end if %>
DELETE FROM YOUR WISH LIST
<% if strAction <> "Yes" then %> <% if not objRs.EOF then %> Are you sure you want to delete the wish list below? <% end if %> <% end if %>
<% if msg <> "" then%> <%= msg %> <% end if %>
|