Forum Discussion

Tomasz565's avatar
Tomasz565
Copper Contributor
Sep 11, 2024

Microsoft Word 2016 - Nested Field Code problem

Hi,

I have problem with Field Codes in Word Office 2016. The field code shows that for page number 10 value should be "test" but when I update field code I see value "REVISED PAGES" on page no 10. What is wrong ? How it is possible ?

 

 

 

 

Regards

Tom

 

 

 

    • Charles_Kenyon's avatar
      Charles_Kenyon
      Bronze Contributor

      The following is your field code:

      { if { PAGE \* Arabic } < 2 "REVISED SH.: 1 (ONLY FIRST PAGE)" { if { PAGE \* Arabic } < 8 "NO REVISION IS INTRODUCED IN THIS PAGE" { if { PAGE \* Arabic } < 12 "REVISED" { if { PAGE \* Arabic } < 17 "TEST" "TEST" } } } }

       

      I use Graham Mayor's utility to convert field codes to/from text.

      Convert Fields to Text and Vice Versa by Word MVP Graham Mayor

       

      In your test document, this gives the result "TEST" on page 18 of the document when updated. That is because of the final false text setting. That should not be present or it should say something like "out of range."

  • Charles_Kenyon's avatar
    Charles_Kenyon
    Bronze Contributor

    Tomasz565 

    I am not seeing the problem in your test document on my system.

     

    Note that these fields are in the footer, not the body. If you do Ctrl+A and then press F9 to update the fields, the update command will not reach them because they are in a separate "story." If you go into editing a header or footer and then use Ctrl+A followed by F9, you will update them. They should also be updating in the case of a print command.

Resources