Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
FS FS is offline
external usenet poster
 
Posts: 2
Default address format in mailmerge

I am trying to mail merge to a word template from access. Below is
the fields that I am using

«Title» «FrstName» «FamName»
«Add1»
«Add2»
«Add3»
«Add4» «Post»

Simple enough

But the problem is that not all entries into the database have an
address field 3 or an address 4 but the post code must attach to the
end of the last address field.

so address should actually look more like

«Title» «FrstName» «FamName»
«Add1»
«Add2» «Post»

OR


«Title» «FrstName» «FamName»
«Add1»
«Add2»
«Add3» «Post»

How do I ensure that the post field attaches to the end of the last
address field? Have tried IF statements. Any help appreciated.

Thanks
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default address format in mailmerge

{ IF { MAILMERGE Add4 } "" "{ MAILMERGE Add2 }[Enter]
{ MAILMERGE Add3 }[Enter]
{ MAILMERGE Add4 } { MAILMERGE Post }" "{ IF { MAILMERGE Add3 } "" ""{
MAILMERGE Add2 }[Enter]
{ MAILMERGE Add3 } { MAILMERGE Post }" "{ MAILMERGE Add2 } { MAILMERGE
Post }" } }

You use Enter or start a new line where (and in place of the [Enter]s in the
above.

--
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

"FS" wrote in message
...
I am trying to mail merge to a word template from access. Below is
the fields that I am using

«Title» «FrstName» «FamName»
«Add1»
«Add2»
«Add3»
«Add4» «Post»

Simple enough

But the problem is that not all entries into the database have an
address field 3 or an address 4 but the post code must attach to the
end of the last address field.

so address should actually look more like

«Title» «FrstName» «FamName»
«Add1»
«Add2» «Post»

OR


«Title» «FrstName» «FamName»
«Add1»
«Add2»
«Add3» «Post»

How do I ensure that the post field attaches to the end of the last
address field? Have tried IF statements. Any help appreciated.

Thanks


  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
FS FS is offline
external usenet poster
 
Posts: 2
Default address format in mailmerge

On Jul 23, 3:14*pm, "Doug Robbins - Word MVP"
wrote:
{ IF { MAILMERGE Add4 } "" "{ MAILMERGE Add2 }[Enter]
{ MAILMERGE Add3 }[Enter]
{ MAILMERGE Add4 } { MAILMERGE Post }" "{ IF { MAILMERGE Add3 } "" ""{
MAILMERGE Add2 }[Enter]
{ MAILMERGE Add3 } { MAILMERGE Post }" "{ MAILMERGE Add2 } { MAILMERGE
Post }" } }

You use Enter or start a new line where (and in place of the [Enter]s in the
above.

--
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

"FS" wrote in message

...
I am trying to mail merge to a word template from access. *Below is
the fields that I am using

«Title» «FrstName» «FamName»
«Add1»
«Add2»
«Add3»
«Add4» «Post»

Simple enough

But the problem is that not all entries into the database have an
address field 3 or an address 4 but the post code must attach to the
end of the last address field.

so address should actually look more like

«Title» «FrstName» «FamName»
«Add1»
«Add2» «Post»

OR

«Title» «FrstName» «FamName»
«Add1»
«Add2»
«Add3» «Post»

How do I ensure that the post field attaches to the end of the last
address field? *Have tried IF statements. *Any help appreciated.

Thanks


Excellent thanks very much for this!
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
Mailmerge is not adding a title after name for address labels. S. Hanks Mailmerge 1 June 5th 08 05:10 AM
Creating address labels with mailmerge [email protected] Mailmerge 2 March 22nd 06 07:13 PM
how to convert single address line into a letter address format? New starter Page Layout 1 January 18th 06 11:39 AM
Specifying a sending address in mailmerge Kevin Mailmerge 2 November 16th 05 02:12 PM
mailmerge using .txt address files Ben (TX) Mailmerge 4 July 31st 05 06:09 PM


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