|
||||||
|
Input Mask By Richard Rost 3 years ago Use an Input Mask for Phone Numbers, ZIP Codes In this video, I will teach you how to use an Input Mask in your Microsoft Access tables and forms. We will create input masks for telephone numbers, ZIP codes, dates, and more. Mckenzie from Chandler, Arizona (A Gold Member) asks: The phone number field in my database is a mess. Some people are typing in dashes, others parentheses, others with nothing at all. I've got: 239-555-1212 I recently wanted to make a report showing customers by area code, and I couldn't do it because my data isn't uniform. How can I force my users to use ONE format for entering phone numbers? MembersMembers will learn how to dynamically change the input mask based on another field. For example, for US & Mexico, use "00000" for the ZIP code. For Canada use "L0L 0L0" for the Postal Code. Same field, different input masks. We'll use a little VBA to swap them on the fly.
Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the files from class plus get access to the Code Vault. If you're not a member, Join Today!
AddendumIn the Extended Cut video, I mention that if you use the VBA code in your forms to change the input mask that you would also need to put that code in your reports as well. That's not necessarily true. If you store the input mask characters in the table field with the ;0 parameter, you won't need any additional changes in the report. Just display what's in the table without any formatting. Input Mask CodesUse the following codes when creating your input masks, as explained in the video. Remember these are different from the codes you use in the Format property and function. Links
Keywordsmicrosoft access, ms access, ms access tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, input mask, Control data entry formats with input masks, Create an Input Mask, setting input masks, Create Input Masks in Access, What is the Input Mask Wizard, Defining Input Masks, How To Create An Input Mask In Access, How to Set an Input Mask, input mask access example, input mask access phone number, input mask codes, input mask characters, input mask zip code
|
||||||||||||||||
| |||
Keywords: TechHelp Access input mask, Control data entry formats with input masks, Create an Input Mask, setting input masks, Create Input Masks in Access, What is the Input Mask Wizard, Defining Input Masks, How To Create An Input Mask In Access, How to Set an Inp PermaLink Input Mask in Microsoft Access |