% call db_open() if ( (Request("id_cota") <> "") and (Request("tipo") <> "") ) then id_cota = Request("id_cota") tipo = Request("tipo") ' deleta aquela cota da pesquisa if (tipo = "pesquisa") then sql = "delete from cf_pesquisa_cota where id_cf_pesquisa_cota = "&id_cota&" ;" con.execute(sql) end if ' deleta aquela cota dos entrevistadores que a tiverem if (tipo = "entrevistador") then sql = "delete from cf_entrevistador_cota where id_cf_entrevistador_cota = "&id_cota&" " con.execute(sql) end if form_alert("Exclusão efetuada.") : form_redir(Request.ServerVariables("HTTP_REFERER")) end if %>