Can't seem to find any information about this. He was alive during the election and the first year of John Quincy Adam's presidency, so it made me curious.
John Adams died on July 4th, 1826. Perhaps you mean the election of 1824? John Q. Adams was President March 4th, 1825 - March 4th, 1829, having lost the 1828 election to Andrew Jackson.