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 / September 2005

Tip: Looking for answers? Try searching our database.

IF THEN ELSE Statement built by searching for a word in a Text Field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick - 07 Sep 2005 14:07 GMT
MS WORD does not give me the ability to search a text field to see if
it "contains" a certain word, which then can trigger a "Then"
statement.  Can it be done?

EX: IF Mergfield Q2 contains the word "cost" insert the following
paragraph
Doug Robbins - 07 Sep 2005 19:31 GMT
Word is a word processor, not a database.  If you need to manipulate data,
you should use a database.

If you can't do that, you could use a macro that makes use of the Wildcard
search facility to populate another field that you create in the datasource
with something if the word is found in the field.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> MS WORD does not give me the ability to search a text field to see if
> it "contains" a certain word, which then can trigger a "Then"
> statement.  Can it be done?
>
> EX: IF Mergfield Q2 contains the word "cost" insert the following
> paragraph
 
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.