A family of Microsoft word processing software products for creating web, email, and print documents.
As you have found, the STYLEREF field looks for the style that you have specified. The field isn't clever enough to take into account other chapters or parts of a document.
Sometimes, you can work around the limitation by adding a character style to the mix. A character style can be applied selectively to some of your headings and you can then reference the character style with a STYLEREF field to get some more control over which text paragraph will be displayed. Of course, such as character style should not be used to modify the text. It is only created to be referenced. See http://wordfaqs.ssbarnhill.com/StyleRef.htm.