I am creating a database using Access2000. I want to create an input mask that makes you save a person's name in the following format:
Jones, A
Any help would be appreciated.
Narelle
Narelle, the problem is that an Input Mask limits the number of Letter or Digits that you can enter. If all your values were 5 letters and then the comma and then an initial, it would be fairly easy but I assume that that isn't the case. You might want to look at Validation Text to see if that could help. Ultimately, it is probably not something you can force in just one field. You might be able to concatentate the values by using a LastName Field and then a First Initial field that limits you to 1 Character. You could do that with an Input Mask. Then put them together
LastName & "," & FirstInitial
Paul deserves a star for suggesting that you use two fields. It is seldom a good move to place two values into one field. Separate fields for Last and First Names is always a good investment.
It is always good practice to store first namd and surname seperatly. You might want to check out the Ltrim, Rtrim and Trim functions that will allow you to extract the initial when needed
Neil Berryman
IT Trainer
neil_berryman@btopenworld.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.