By Richard Rost 2 years ago
Filter Characters from Text Field in Microsoft Access
In this video, I'm going to teach you how to write a function to filter out unwanted characters from a text field (or string) in Microsoft Access. We'll call it the FilterCharacters function.
Tom from Buffalo, Wyoming (a Platinum Member) asks: I know that you can force users to enter only digits into a phone number field by setting up an Input Mask. However, we do a lot of copy and paste from emails and such. That doesn't work with an Input Mask. Is there any way we could allow the user to paste a phone number into the field and then just remove anything but the digits?
Members will learn how to make global constants such as ALPHA and NUMERIC to represent long strings of characters, so that we don't have to copy those all over the place in our code. Also, we'll add an optional third parameter which will be the string that unwanted characters will be replaced with, like a space character.
Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to register on my YouTube Find User page so I can set up your account here on my web site. If you're not a member, Join Today!
Gold Member Code Vault
access 2021, access 2019, access 2016, access 365, microsoft access, ms access, ms access tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, filter, allowed, remove, Removing characters from fields, Remove Characters from Text Field, replace, Remove Characters from String
Subscribe to Filter Characters
Get notifications when this page is updated
|Keywords: TechHelp Access filter, allowed, remove, Removing characters from fields, Remove Characters from Text Field, replace, Remove Characters from String PermaLink Filter Characters from Text Field in Microsoft Access