Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7920 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I know this is probably very basic but I can't get the zip codes in my database to show a lead zero. All the zip codes that begin with a zero only show the last 4 digits. Any help?

-Chris

Posted

Change the field type to text. This is best anyway, as many postal codes in other countries contain letters. If you use the number field in a calculation, you can lose the letters and punctuation.

-bd

  • 5 months later...
Posted

As LiveOak said, change this to text and you're all set.

My general rule of thumb is to set a field as text unless you can perform a meaningful mathematical operation on the data that it contains. There are often data that are numeric identifiers, like zip codes. But it it better to leave such identifiers as text. Ask yourself, "would I ever need to add, subtract, multiply, or divide this number?" If not, leave it as text. What do you get if you add two zip codes? Certainly nothing meaningful. So leave it as text. It will give you more flexibility down the road.

Dan

  • 1 month later...
Posted

I'll see if my dialup connection will tolerate me adding a zip code file to the Sample Files forum.. look for it there. At the rate by dial up works, it may be next month!

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.