<% l_codmnu = Request("p_codmnu") l_codnot = Request("p_codnot") l_where = "WHERE codnot = " & l_codnot IF campo_vazio(l_codnot) THEN l_where = "ORDER BY datini DESC" l_codnot = 0 END IF CALL consulta_tabela(Conn, "codnot, titnot, desnot, detnot, datini, imgnotpcp, ftenot", "cadnot" _ , l_where _ ,l_liscpotmp, l_arrtmp, l_totregtmp) CALL consulta_tabela(Conn, "codnot, titnot, desnot, datini", "cadnot" _ ,"WHERE datini < " & data_e_hora_numerica() _ &" AND datfim > " & data_e_hora_numerica() _ &" AND tipnot = 'N'" _ &" ORDER BY datini DESC" _ ,l_liscponot, l_arrnot, l_totregnot)%> RPPN CATARINENSE