Eliz309 Posted March 18, 2004 Posted March 18, 2004 I am trying to format a credit card number field to automatically put a space after every 4th number. I have created a mask and it works well except that all credit card numbers are not the same number of digits. So if I make the mask for 16 and enter a 14 digit number, it adds numbers. Is there a way that I can get around this?
CyborgSam Posted March 18, 2004 Posted March 18, 2004 Assuming a text field named CC#, create a calculation field with: Left(CC#, 4) & " " & Middle(CC#, 5, 4) & " " & Middle(CC#, 9, 4) & " " & Middle(CC#, 13, 4) & " " Is this what you wanted?
Eliz309 Posted March 19, 2004 Author Posted March 19, 2004 That is exactly what I was looking for! Thank you
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now