Actually, in games prior to Generation V, there is a way. It's called the "Box Method." Basically, you have to EV train a Pokemon, then put it into a box, then take it out. It's tedious, but it works because EVs are recalculated every time you deposit and withdraw a Pokemon from a box.