He was an unsuccessful candidate for election in 1840 to the Twenty-seventh Congress and in 1844 to the Twenty-ninth Congress .
He was an unsuccessful candidate for election in 1840 to the twenty-second Congress , and in 1844 to the twenty-ninth congress .