Check out my accompanying diagram. The only way both sides of the receptacle can be switched with the tab broken out is if the wires are touching on back of the receptacle. The tab essentially splits the receptacle into two parts.
You must have two cables going to the outlet box, or a three wire from the switch box to the receptacle box.
