Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Craig Craig is offline
external usenet poster
 
Posts: 27
Default Using IF fields to create new paragrapgh's

I have set up a word document with series of ASK and IF fields but the
formatting is not very good. With the if fields i set up the response is if
yes then insert some text but if no then blank,

But i need it to insert a new paragraph after the text and if there is no
text i don't want it to create a extra line?



  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Antonette Antonette is offline
external usenet poster
 
Posts: 2
Default Using IF fields to create new paragrapgh's

Craig;

Are you using a table or a query in your database to populate the
fields in the word document?

If you are not using a query, create one and do what you nee to do in
the query using the IIF function. I am sure you can do what you need to do
in the method instead of applying VBA code to the Word document. It is a lot
cleaner and easire. It is also easier to debug.

Good Luck

Let me Know how it works out.

Toni

"Craig" wrote:

I have set up a word document with series of ASK and IF fields but the
formatting is not very good. With the if fields i set up the response is if
yes then insert some text but if no then blank,

But i need it to insert a new paragraph after the text and if there is no
text i don't want it to create a extra line?



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Using IF fields to create new paragrapgh's

Hi Craig,

Simply embed the paragraph mark inside the IF field, the append the field to the following paragraph.

--
Cheers
macropod
[MVP - Microsoft Word]


"Craig" wrote in message ...
I have set up a word document with series of ASK and IF fields but the
formatting is not very good. With the if fields i set up the response is if
yes then insert some text but if no then blank,

But i need it to insert a new paragraph after the text and if there is no
text i don't want it to create a extra line?



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
How do I create fill in fields within a document? epluribusdugan Microsoft Word Help 2 November 28th 08 03:38 PM
How do I create Cross References for SEQ fields Glen Perry Microsoft Word Help 3 September 19th 07 04:29 PM
Possible to create 2 TC fields for TOC for each line? Linda Page Layout 1 September 28th 06 12:26 AM
How can I create custom merge fields? Hapytraylz Mailmerge 3 December 6th 05 06:23 PM
How do I create template fields? PurchasingBuyer Microsoft Word Help 4 February 3rd 05 09:07 PM


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