Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
seno seno is offline
external usenet poster
 
Posts: 1
Default Snytax for CompareTo Field IF THEN ELSE


Hi my first post woohoo,

I use mail merge in the work I do but wish to know what is syntax I use
for IF ELSE THEN statment. Hope fully it reads clearly.

Excel sheet
Field Trust_name
1 Plantation
2 The Cabbage

In the form letter, [ ] is where i want the sentence to change
depending on the condition of the Trust_name. Example listed below.

"...as trustee for [ ] Trust_name Trust,..."

The statement I inserted [ ] in Word is:
IF FieldName:Trust_name Comparison:EqualTo CompareTo:"The..."
THEN "blank"
ELSE "the"

Result I want is:
1 Plantation "...as trustee for the Plantation
Trust,..."
2 The Cabbage "...as trustee for The Cabbage Trust,..."

What I want to know is what is the correct syntax to use for CompareTo
box:
"The-SPACE-Any number of character there after" for the compare
CompareTo box?

I guessed and tried "The*" doesn't work.

It cant be "The-Any number of character there after" as there words
begin with The such as Thespian and Theodore for example.

I hope theres an answer.
I pray in the mean time.

Cheers!
Seno




--
seno
 
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
File Name Field With Text Form Field When Performing a Save As... Bilbert Microsoft Word Help 1 April 11th 07 08:50 PM
Copy portion of text form field , the field is in a table cell otilia Tables 6 January 27th 06 11:52 AM
automatically inserting text in a merge field blank field. DrTominRI Mailmerge 2 December 20th 05 06:35 AM
Help on Mailmerge field (field length) - field getting truncated Blasting Cap Mailmerge 0 September 16th 05 06:57 AM
Mail merge field different in datasource & insert a field menu Silvs Mailmerge 1 April 22nd 05 06:18 AM


All times are GMT +1. The time now is 08:05 AM.

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"