Reply
 
Thread Tools Display Modes
  #1   Report Post  
Nick
 
Posts: n/a
Default IF THEN ELSE Statement built by searching for a word in a Text Field

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

  #2   Report Post  
Doug Robbins
 
Posts: n/a
Default

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.

--
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
"Nick" wrote in message
oups.com...
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



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
IF THEN ELSE Statement built by searching for a word in a Text Field Nick Mailmerge 0 September 7th 05 01:39 PM
Statement parameter in Mailmerge.OpenDataSource Christof Nordiek Mailmerge 6 April 26th 05 09:31 AM
Possible BUG: Multiple HTTPrequests send from one includetext statement Oliver Mailmerge 2 April 18th 05 09:46 AM
How do I copy a scanned signature into an if/or statement in Word mcgowan Mailmerge 2 February 1st 05 06:37 AM
Insert carriage return in mergefield statement dixie Mailmerge 2 December 22nd 04 03:42 AM


All times are GMT +1. The time now is 01:41 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"