View Single Post
 
Old 04-23-2014, 05:34 AM
bigukfan bigukfan is offline Windows 8 Office 2010 32bit
Novice
 
Join Date: Mar 2014
Location: England
Posts: 9
bigukfan is on a distinguished road
Default

macropod, Thank you for your reply with an interesting solution.

I have now heard from the database guy who informs me there are eight possible options for the field "AR". When I looked at the four that need to be bold, I see they all contain the same sequence of two letters: "er"

However, when I amended your syntax the bold did not word:

{IF{MERGEFIELD AR}= "*er*" {MERGEFIELD AR \* Charformat} {MERGEFIELD AR}}

I looked into this further and one suggestion was that it is not possible to use the wildcard twice which I find unlikely.

As an experiment I did try the following, which worked:

{IF{MERGEFIELD AR}= "*Severe" {MERGEFIELD AR \* Charformat} {MERGEFIELD AR}}

However, when I tried the following the bold did not work:

{IF{MERGEFIELD AR}= "*Severe*" {MERGEFIELD AR \* Charformat} {MERGEFIELD AR}}

Any further advice would be gratefully received.

Am I in the realms of nested If statements? If so, I would appreciate an example.

Once again, thank you for your help.
Reply With Quote