Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Divinite Divinite is offline
external usenet poster
 
Posts: 15
Default Directory Merge Issues

I'm creating a directory merge for a client. I'm basing this off of a
file that I used successfully the last two years.

I have it setup correctly:
{ IF {MERGESEQ} = "1" "{Field1}"""}
{ SET Change1 {Field1} }{ IF {Change2} {Change1} "{Field1}
{Field2}" "{Field2}"}
{ SET Change2 {Field1}

In theory, it should be working just fine. It has worked just fine
before. However, when I go to preview the merge, it shows only the
"{Field2}" from the second IF statement.

I went back and looked at past files that have used this directly type
successfully and they were now all doing the same thing, even if they
worked before.

I've tried recreating the document, same thing. It did appear
correctly once, but without changing anything, just doing a refresh
(ctrl-A + F9) caused it to change back to just the 2nd IF again.

Any ideas as to what could be causing this issue?

Thank you in advance,
Jessica
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Directory Merge Issues


1. { MERGESEQ } is blank when you preview - it only has a numeric value
when you merge. FWIW { MERGEREC } will compare with "1" even during
preview, but may not be the correct value for your requirement.

2. In theory, at the beginning of the merge, you should set Change1 to a
value outside the range of Field1 (e.g. in some cases, setting it to ""
should work, but if field1 could take any alphanumeric value, you can
set it to a non-alpha value, e.g. a small inline graphic.

e.g.

{ IF { MERGEREC } = "1" "{ Field1 }{ SET Change2 "" }" "" }

The thing is that bookmark values remain as the /last value you set them
to/. In other words, nothing in your field code initialises the value of
Change2.

3. Maybe you mean { MERGEFIELD Field1 } etc. Or maybe not..


Peter Jamieson

http://tips.pjmsn.me.uk

Divinite wrote:
I'm creating a directory merge for a client. I'm basing this off of a
file that I used successfully the last two years.

I have it setup correctly:
{ IF {MERGESEQ} = "1" "{Field1}"""}
{ SET Change1 {Field1} }{ IF {Change2} {Change1} "{Field1}
{Field2}" "{Field2}"}
{ SET Change2 {Field1}

In theory, it should be working just fine. It has worked just fine
before. However, when I go to preview the merge, it shows only the
"{Field2}" from the second IF statement.

I went back and looked at past files that have used this directly type
successfully and they were now all doing the same thing, even if they
worked before.

I've tried recreating the document, same thing. It did appear
correctly once, but without changing anything, just doing a refresh
(ctrl-A + F9) caused it to change back to just the 2nd IF again.

Any ideas as to what could be causing this issue?

Thank you in advance,
Jessica

  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Directory Merge Issues

Hi Divinite,

For some simpler field code logic, check out my tutorial at:
http://www.wopr.com/cgi-bin/w3t/show...?Number=731107
Do read the tutorial before trying to use the mailmerge document included with it.

--
Cheers
macropod
[MVP - Microsoft Word]


"Divinite" wrote in message ...
I'm creating a directory merge for a client. I'm basing this off of a
file that I used successfully the last two years.

I have it setup correctly:
{ IF {MERGESEQ} = "1" "{Field1}"""}
{ SET Change1 {Field1} }{ IF {Change2} {Change1} "{Field1}
{Field2}" "{Field2}"}
{ SET Change2 {Field1}

In theory, it should be working just fine. It has worked just fine
before. However, when I go to preview the merge, it shows only the
"{Field2}" from the second IF statement.

I went back and looked at past files that have used this directly type
successfully and they were now all doing the same thing, even if they
worked before.

I've tried recreating the document, same thing. It did appear
correctly once, but without changing anything, just doing a refresh
(ctrl-A + F9) caused it to change back to just the 2nd IF again.

Any ideas as to what could be causing this issue?

Thank you in advance,
Jessica

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mail merge issues, help Needing Help In Kansas Mailmerge 1 August 24th 08 06:23 AM
Mail merge issues Kat Mailmerge 4 June 20th 08 07:02 AM
Mail Merge Issues whitnco25 Microsoft Word Help 1 June 9th 08 03:17 PM
Mail Merge Issues ramudu Mailmerge 1 June 28th 06 04:41 AM
Merge Issues DL Mailmerge 2 October 21st 05 08:45 PM


All times are GMT +1. The time now is 06:58 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"