Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Input Masks and Zip Code Formatting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Che - 29 Mar 2006 22:02 GMT
I imported a table from excel and now the zip code column will not show a "0"
in front of certain postal codes (i.e. the zip code for 02116, shows 2116).
How do I use the input mask to properly set the zip code format?
Douglas J Steele - 29 Mar 2006 22:28 GMT
When you imported, Access must have set the field to numeric.

Add a new Zipcode field to your table, and make it Text.

Use an update query to update the new field to Right$("00000" & OldZipField,
5)

Once you've checked that the new field is correct, you can delete the old
field.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> I imported a table from excel and now the zip code column will not show a "0"
> in front of certain postal codes (i.e. the zip code for 02116, shows 2116).
> How do I use the input mask to properly set the zip code format?
 
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.