M
Michael Holz
This is a really wierd one. I am guessing that "RET" may have some reserved
meaning and it is interfering with my IF statement, but not sure.
So here is what I'm trying to do. In Office 2003, I'm doing an INCLUDETEXT
thing when a certain MERGEFIELD = "RET" which is something that we pull to a
data .csv file from our database. I've dumbed it down for myself for testing
to take out all but the easy stuff so I could make sure that I isolated the
problem, and I still see this odd issue.
Here's what I've been using for testing when I discovered this issue.
"{IF{ MERGEFIELD AdmitType } = "RET" "test" "what"
No matter what I do this always outputs: what
I have verified that the field in the data file does in fact contain "RET"
by just printing "{MERGEFIELD AdmitType}" in the form letter. The Mergefield
by itself in the form letter prints "RET"
In addition, I've also changed a single letter in the datafile so that
{MERGEFIELD AdmitType} contains "REM" and then changed the one character in
the line of code so that the line of code reads:
"{ MERGEFIELD AdmitType } = "REM" "test" "what"
Then the output in the merge finally reads: test
Any suggestions as to how to get around this? Is there some type of escape
character? Or is anyone else even able to duplicate this?
meaning and it is interfering with my IF statement, but not sure.
So here is what I'm trying to do. In Office 2003, I'm doing an INCLUDETEXT
thing when a certain MERGEFIELD = "RET" which is something that we pull to a
data .csv file from our database. I've dumbed it down for myself for testing
to take out all but the easy stuff so I could make sure that I isolated the
problem, and I still see this odd issue.
Here's what I've been using for testing when I discovered this issue.
"{IF{ MERGEFIELD AdmitType } = "RET" "test" "what"
No matter what I do this always outputs: what
I have verified that the field in the data file does in fact contain "RET"
by just printing "{MERGEFIELD AdmitType}" in the form letter. The Mergefield
by itself in the form letter prints "RET"
In addition, I've also changed a single letter in the datafile so that
{MERGEFIELD AdmitType} contains "REM" and then changed the one character in
the line of code so that the line of code reads:
"{ MERGEFIELD AdmitType } = "REM" "test" "what"
Then the output in the merge finally reads: test
Any suggestions as to how to get around this? Is there some type of escape
character? Or is anyone else even able to duplicate this?