Full_Williams
Registered User.
- Local time
- Today, 22:45
- Joined
- Jul 2, 2002
- Messages
- 88
Hi,
I'm trying to display addresses in a mail label report like this:
John Doe
1234 S. Street
San Francisco, CA 22102
My problem is that some addresses within my table have 9 digits and some have only 5. The addresses with 5 digits display correct while the address with 9 digits display as
"221022222" instead of "22102-2222". Without the "-" in there.
I tried formatting the zip field in the query like this:
=([City] & " " & [State_Acronym] & ", " & Format([Zip],"00000-9999;0;_"))
but Access keeps changing it to:
=([City] & " " & [State_Acronym] & ", " & Format([Zip],"00000""-9999"";0;_"))
Access keeps adding extra quotes in there.
Any ideas on how I can get around this problem.
Any help would be appreciated.
Thanks,
Full Williams
I'm trying to display addresses in a mail label report like this:
John Doe
1234 S. Street
San Francisco, CA 22102
My problem is that some addresses within my table have 9 digits and some have only 5. The addresses with 5 digits display correct while the address with 9 digits display as
"221022222" instead of "22102-2222". Without the "-" in there.
I tried formatting the zip field in the query like this:
=([City] & " " & [State_Acronym] & ", " & Format([Zip],"00000-9999;0;_"))
but Access keeps changing it to:
=([City] & " " & [State_Acronym] & ", " & Format([Zip],"00000""-9999"";0;_"))
Access keeps adding extra quotes in there.
Any ideas on how I can get around this problem.
Any help would be appreciated.
Thanks,
Full Williams