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 / February 2004

Tip: Looking for answers? Try searching our database.

Zipcode not Valid! Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ernie D - 11 Feb 2004 20:35 GMT
Does any one have any Idea on how to programmatically
check for the Message "Zipcode not Valid!" ?
and stop it from printing any bar code ?
I am merging in information using a Book mark.
Generally most of the addresses will come in correct ,
but occasionally I get a foreign zip code or an APO, this
will cause the above message
I have made several attempts to use a formula like
{ IF { BARCODE  ENV_ZIPCODE1 \b\* MERGEFORMAT }
<> "Zipcode not valid!" "{ BARCODE  ENV_ZIPCODE1 \b\*
MERGEFORMAT }" ""
}
Or will the post office accept all 9's in the bar code
for those bad zip codes! ;-)
Any Help would be greatly appreciated!
Thanks
E
Cindy M  -WordMVP- - 12 Feb 2004 15:55 GMT
Hi Ernie,

> Does any one have any Idea on how to programmatically
> check for the Message "Zipcode not Valid!" ?
[quoted text clipped - 10 lines]
> Or will the post office accept all 9's in the bar code
> for those bad zip codes! ;-)

What result do you get with the IF field? Have you tried
putting the Barcode field on the left of the comparison in
"quotes", as well? Sometimes that helps an IF field evaluate
more as you'd expect.

Why are you using a bookmark instead of putting the
mergefields into the Barcode field? Is there some way you
could check the content of a mergefield (country, for
example), whether it would be valid as a zipcode?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)
Charles Kenyon - 13 Feb 2004 00:58 GMT
I try to avoid bookmarks when merging as a merge result document containing
multiple records can only have one bookmark. Put in the merge field for the
zip code instead.

In trying to code around similar error messages with a docproperty field, I
did the following:
1) Put together a field that generates the error message.
2) Unlink that field so I have the error message as text.
3) Use that text as the test text in the IF field.
4) As Cindy suggests, put both sides in quotation marks. When using
bookmarks I never simply use the bookmark - even though that is how you are
supposed to do it - I use a ref field with the bookmark name in quotation
marks.

Look into instructions on skipping whole lines when a field is blank. You
could add that coding here and it would at least work when the postal code
field was blank.
Signature


Charles Kenyon

See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> Does any one have any Idea on how to programmatically
> check for the Message "Zipcode not Valid!" ?
[quoted text clipped - 13 lines]
> Thanks
> E
 
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.