Hi
We do business with companies in the US and Canada and would like to eliminate the data entry errors associated with miskeying zip codes. Since the zip code syntax is so different between the 2 countries is there a way in SL to look at the Country code and then set a mask fir the zip code?
Thank you
Tom D
*This post is locked for comments
awesome! thanks Randall, I will give it a try
A quick VB customization like this works for the basic changing of the Zip code mask:
Private Sub ccountry_Chk(ChkStrg As String, retval As Integer)
If Trim(ChkStrg) = "US" Then
czip.Mask = "99999-9999"
ElseIf (Trim(ChkStrg) = "CA") Then
czip.Mask = "WWW WWW"
Else
czip.Mask = "XXXXXXXXXXX"
End If
End Sub
The challenge will be finding all of the places that this code would need to be added. Also, the default layout has the country after the zip code, so the order of fields may need to be changed to make it flow better for the user.
Hi Carolyn
I am still looking for a solution to this. I am not a coder but it looks like writing some custom code may be the only solution
Tom
Hi TomD,
I can test this for you unless you already have found an answer. Let me know. Thanks.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156