The Flintstones: Season 6, Episode 16
Fred Goes Ape (14 Jan. 1966)
Fred has violent sneezing caused by an allergy. To stop the sneezing, he goes to the drug store for a bottle of "Scram." Each such pill stops a fit of sneezing, but has the side effect of turning Fred temporarily into an ape.