#1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Sawlmgsj Sawlmgsj is offline
external usenet poster
 
Posts: 2
Default IF statement

I want to include an IF statement when the data source is only added at run
time.

I am merging a document which does not have a data source already. My
(Delphi) program adds the data source at run time to my document and then
runs the merge. This works fine for standard merge fields such as:

«FirstName» «LastName»

I need the syntax for something like:

IF «FirstName» blank

If my document already has the data source attached and I 'Merge to New
Document" it works fine.

Thanks,
Steve.
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Sawlmgsj Sawlmgsj is offline
external usenet poster
 
Posts: 2
Default IF statement

Update:

Funny how a fresh look gives the answer - must try fitting head on correctly
next time.

I added my data source to a test document, got the syntax correct. Copied
the code back to my original document and all worked correctly, when running
dynamically.

Steve.


"Sawlmgsj" wrote:

I want to include an IF statement when the data source is only added at run
time.

I am merging a document which does not have a data source already. My
(Delphi) program adds the data source at run time to my document and then
runs the merge. This works fine for standard merge fields such as:

«FirstName» «LastName»

I need the syntax for something like:

IF «FirstName» blank

If my document already has the data source attached and I 'Merge to New
Document" it works fine.

Thanks,
Steve.

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 statement Paul J Microsoft Word Help 11 May 14th 07 06:04 PM
which statement right , question is Choose the correct statement? how many template?when we click new doc Microsoft Word Help 1 October 16th 06 11:15 AM
which statement right , question isChoose the correct statement? how many template?when we click new doc Microsoft Word Help 1 October 15th 06 11:20 PM
if statement Boots Microsoft Word Help 2 June 2nd 06 02:11 PM
OR statement JCSadie Mailmerge 7 April 26th 05 09:52 PM


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