% 'if session("permissao2") <> "acessoliberadocertificado" then 'session("tipo2") = 3 'end if 'crtsql = "select * from tab_certificado where crt_tipo="&session("tipo2")&" order by crt_nome ASC" 'set crtrs=objconexao.execute(crtsql) if session("tipo2") = 1 then crt_log ="Associado" elseif session("tipo2") = 2 then crt_log = "Filiado" else crt_log = "Não associado" end if crtsqln = "select * from tab_certificado where crt_tipo= 3 order by crt_nome ASC" set crtrs_n=objconexao.execute(crtsqln) crtsqlf = "select * from tab_certificado where crt_tipo= 2 order by crt_nome ASC" set crtrs_f=objconexao.execute(crtsqlf) crtsqla = "select * from tab_certificado where crt_tipo= 1 order by crt_nome ASC" set crtrs_a=objconexao.execute(crtsqla) %>