Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input Mask Wizard - Zip Code

Status
Not open for further replies.

omega1983

Programmer
Dec 21, 2004
32
US
Using the input Mask wizard zip code, I chose the zip code that uses the 9 digit zip code as follows 99999-9999. Some zip codes only have 5 zipcodes. However the output looks like this 99999-. How do I get rid of the - in the case of a 5 digit zip
 
Here is the code gnerated by the input mask
00000\-9999;0;_

Can you explain that further. I placed a # in replacement of the last 9 and that did not get rid of the - in the case of a 5 digit zip code. The input mask is set up to handle a 9 digit zip. What I need is a conditional suppression of the - if the zipcode is only 5 digits.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top