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 / November 2007

Tip: Looking for answers? Try searching our database.

IF statement

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sawlmgsj - 12 Nov 2007 09:09 GMT
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.
Sawlmgsj - 12 Nov 2007 09:25 GMT
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.

> I want to include an IF statement when the data source is only added at run
> time.
[quoted text clipped - 14 lines]
> Thanks,
> Steve.
 
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.