There are three possible ways to wire a switch and receptacle combination: the switch can be connected as a circuit breaker for the receptacle. The switch also can be wired to control a device either by sharing the hot wire connection with the receptacle or from separate hot wires.
Wiring the switch to power the receptacle on and off is the simplest. The hot wire is connected to the side of the switch without the tab. The neutral wire is connected to the side of the receptacle that is also not connected to the tab. The tab completes the circuit between the switch and receptacle.
The hot wire can also be connected to the tab, powering both the switch and the receptacle. The other side of the switch is then wired to the device it is to control. A neutral wire is connected to the opposite connection of both the receptacle and the device, thus completing the circuit.
A variation on the second option is to break off the tab and connect separate hot wires for the switch and receptacle. This is a less likely scenario, but it may be required to put the receptacle and device on separate circuits when there is also a need to use the switch and receptacle device.