In 1975, of course. https://en.wikipedia.org/wiki/United_Kingdom_European_Communities_membership_referendum,_1975