Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting SQL statement to VB for Microsoft Word usage

Status
Not open for further replies.

barefoottraveler

Programmer
Dec 13, 2006
10
US
I am not a programming guru by any means. Now that I have said it:

I have a SQL statement I use in Crystal Reports that allows me to keep the address block togehter(no spaces) when there is no information populating the 'Careof' field. I need to reproduce this statement in a Microsoft Word mail merge document. I have no clue where to even begin.

Any assistance would be greatly appreciated.

Here is the SQL statement:

if not isnull({Tx_rrg_fulf_Query.BROK_CAREOF}) then
{Tx_rrg_fulf_Query.BROK_CAREOF}
Else
{Tx_rrg_fulf_Query.BROK_ADDR}
 




Hi,

In MailMerge there is a Control Field for If..Then..Else.

But I believe that no value will suppress the line feed without If..Then..Else. Try it.

Skip,

[glasses] [red][/red]
[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top