BRASILIA, Brazil (AP) _ A federal judge upheld a ban Friday that kept Brazil's impeached president from seeking elected office again, blocking Fernando Collor's hopes of a quick return to the presidency.

Senior Judge Cesar Antonio Ramos overturned a decision by a lower-court judge, who had ruled that sanctions against Collor barred him from appointed _ but not elected _ office.

In December, the Supreme Court upheld a Senate decision barring the ex-president from holding or running for any public office until 2000. In Brazil, however, a lower court is not required to follow a higher court's verdict, leading to the continuing court battles over the ban.

Collor was elected in 1989 and forced out three years later for corruption. He resigned as the Senate was deliberating whether to remove him from office, but senators voted to strip him of his political rights for eight years anyway.

In 1994, he was acquitted in a criminal trial for corruption.

Collor, who now lives in Miami, had welcomed the short-lived exemption from the ban.

``It's 100 percent certain that I will run to recover the power that was snatched from me by a congressional coup,'' he said at the time. ``Let the people make their own judgment.''