Forum Discussion
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_KenyonBronze Contributor
I cannot see what might be wrong. It could be your pagination.
Your work refers to sheets, which is normally a term used in Excel rather than Word.
I see that you supplied samples and will look at them.
The following does not answer your question but may be of assistance in creating IF Fields and Nested IF Fields:
- Charles_KenyonBronze 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_KenyonBronze Contributor
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.