Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / February 2004

Tip: Looking for answers? Try searching our database.

Incorrect Page number in the IF field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bao Le - 04 Feb 2004 00:45 GMT
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
Doug Robbins - Word MVP - DELETE UPPERCASE CHARACTERS FROM EMAIL ADDRESS - 04 Feb 2004 03:15 GMT
Have you tried updating the fields?

Signature

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

>I use the following logic in the footnote section of my
> mail merge document and it works fine in WORD 97.  However
[quoted text clipped - 9 lines]
> Thanks,
> Bao
Bao Le - 04 Feb 2004 16:53 GMT
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.
>-----Original Message-----
>Have you tried updating the fields?
[quoted text clipped - 14 lines]
>
>.
Graham Mayor - 05 Feb 2004 07:01 GMT
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

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
    Graham Mayor -  Word MVP
      E-mail gmayor@mvps.org
     Web site www.gmayor.com
 Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>

> What do you mean by updating the fields?  The Page Number
> field supposes to update and increment on each page, and
[quoted text clipped - 26 lines]
>>
>> .
Bao Le - 05 Feb 2004 16:28 GMT
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.
>-----Original Message-----
>Conditional fields (and most other fields for that matter) do not update
[quoted text clipped - 35 lines]
>
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.