<% strId = request("Id") strAction = request("cmdAction") ' Create a recordset object to store specific table information Set conn = Server.CreateObject("ADODB.Recordset") 'Establish what records you want selected for the SQL query string SQL = "Select * From tblServiceCategories where Id = " & strId 'Set the recordset object equal to the SQL query string conn.Open SQL, objADO, 1, 3 strservicecat = conn("CategoryName") if Request.form <> "" and strAction <> "" then ' Create a recordset object to store specific table information Set conn = Server.CreateObject("ADODB.Recordset") 'Establish what records you want selected for the SQL query string SQL = "Delete * From tblServiceCategories where Id = " & strId 'Set the recordset object equal to the SQL query string conn.Open SQL, objADO, 1, 3 Response.redirect "manageservicecats.asp" end if %> <% if strWarningErrMsg <> "" then %> Error(s):<%= strwarningErrMsg %> <% end if %>

DELETE SERVICE CATEGORY

Are you sure you want to delete the service category below?
Press the delete button to delete the selected service category.
<%= ucase(strservicecat) %>