What you are trying to do is to "create a compound path"
If you have letter 0, it is made of 2 lines, the outside and the inside. To make the inside "invisible" you need to create a compound path.
SO, choose the base of the object, hold "shift" and slect the invisible part, then choose "Object > Compound Path > Make"
There you go.