Barham represented the agricultural District 33 from 1976 to 1980. He was narrowly unseated in the 1979 nonpartisan blanket primary by the Democrat David "Bo" Ginn of Bastrop, who held the seat until 1988.