I know how frustrating it can be when they go through these phases! Both mine were real handfuls around 7 months old (that's the nice way to put it), even my Cooper who is the most lazy, loving, docile yorkie ever! I try to tell my boyfriend how awful his "teenage" phase was (that's what I chock it up to), because no one can believe that this dog was ever a handful! So he will grow out of it
Baron is now 1 year old, still hyper (but we try to wear him out during the day). I agree with working on the
"potty commands". I just tell Baron to "go potty" and he knows he has to use his potty pad before he can be on the bed with us. To start letting him sleep with us, I would get up around 5am and make Baron use his potty pad before he can get back into bed. As he got the hint, I could sleep in longer and longer. It's to the point now where he wakes me up with a little bark when its time! (He can't & won't jump off the bed)
I guess my personal opinion is decide the behavior you want and find a way to convey the expectations to the dog! (Whether its pads or outside) They are really smart and if they want something (ie sleeping in bed) they will conform their behavior
Sorry my post is so long

Good luck and he will grow out of this phase!