Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Nine-digit zip codes

0 views
Skip to first unread message

Val Kurkas

unread,
Jul 6, 1999, 3:00:00 AM7/6/99
to
I'm sure someone has already answered this one before, but I have to ask
again! We have zip-code fields for which we're using an input mask that
does not store the hypen between the zip+four. In a report, we have
concatenated our [City]&", "&[State]&" "&[Zip] fields, but of course the
nine digit zips come out looking like 555554444 (without the hypen).

Using the Format function for the zip only sticks in the hypen whether or
not it is a five or nine digit. I think that I need to evaluate whether the
string is five or nine and use an IIF to apply the format function if the
zip is nine digit, but how? OR is there an easier way?

Seems like it should be so simple!

Thanks in advance for ANY help!

Val

Gary Meyer

unread,
Jul 7, 1999, 3:00:00 AM7/7/99
to
You're on the right track. Look at article Q163604 in the MS knowledgebase.
0 new messages