<% strName = session("DeleteModel") 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 CDModels where CDModel = '" + strName + "'" 'Set the recordset object equal to the SQL query string conn.Open SQL, objADO, 1, 3 strModel = conn("CDModel") 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 CDModels where CDModel = '" + strModel + "'" 'Set the recordset object equal to the SQL query string conn.Open SQL, objADO, 1, 3 'Response.Write custid Response.Redirect "menu.asp" end if %> <% if strWarningErrMsg <> "" then %> <% end if %>
DELETE VEHICLE MODEL - STEP 2
Error(s):<%= strwarningErrMsg %>


Are you sure you want to delete the vehicle Model below?
Press the delete button to delete the selected vehicle Model.
<%= ucase(strModel) %>