If you want the ultimate control, use field codes, sets of instructions that contain a field name and switches. After you enter your options, Word creates the field codes, which it then uses to build your table of contents.
Advanced tables of contents
Modify a TOC with field codes
Modify a TOC with field codes