Incorrect Page number in the IF field

B

Bao Le

I use the following logic in the footnote section of my
mail merge document and it works fine in WORD 97. However
when I run it in WORD 2002, the page number was wrong for
all the pages in the document. The page number was set to
3 for all the sections that have the page number field
inserted. It should have incremented on each page, but it
didn't.

{ MERGEFIELD FormNumber }{ IF { MERGEFIELD CustomSuffix }
= "No Page" "" "-{ PAGE }"}{ MERGEFIELD Section5Suffix }

Thanks,
Bao
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Have you tried updating the fields?

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 
B

Bao Le

What do you mean by updating the fields? The Page Number
field supposes to update and increment on each page, and
it workS fine in WORD 97. I have the feeling that in WORD
2002, the Page field doesn't work correctly within the IF
statement.
 
G

Graham Mayor

Conditional fields (and most other fields for that matter) do not update
automatically. This was also the case in Word 97. They require updating
either by events or manually. To this end a macro attached to a tool button
that will update fields wherever they occur is necessary. See
http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 
B

Bao Le

I'm running Visual basic code to do the mail merge. My
word document links to a MS access data source. After the
mail merge event, all my field codes receive the correct
values from the database, except for the PAGE number. The
PAGE number comes from the tool bar in WORD.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top