Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Developers    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Need Help Separating Zip Codes.
Werner Mildt 
      
29 hours ago
I need to separate zip codes:
Full zip code: 12345-6789
Partial zip:   12345-
Left([ZipCode],5) = 12345
I only want to use the Right Function on the Full zip code field.
If there is a way to do this, any help would be appreciated.
Thanks for any response.
Werner Mildt OP  @Reply  
      
29 hours ago

Alex Hedley  @Reply  
           
29 hours ago
Can you Split by "-"?
Werner Mildt OP  @Reply  
      
28 hours ago
Yes, Alex
Werner Mildt OP  @Reply  
      
27 hours ago
Alex
Thanks Alex, I got it working.
Richard Rost  @Reply  
           
22 hours ago
Glad you got it working, Werner. Yep, Split is a good approach when the hyphen is consistently present.

If it isn't, you can check the length first. A ZIP code that's exactly 9 characters can be split, one that's exactly 5 should be left alone, and anything else means you've got some weird data to investigate. It gets trickier if you also need to handle postal codes from other countries, such as Canada or the UK.
Add a Reply Upload an Image
Next Unseen

 
 
What's This?

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 10/8/2026 8:15:12 PM. PLT: 0s