Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
Home > TechHelp > Directory > Access > Input Mask < Seasonal Address | Subforms >
Input Mask
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   26 days ago

Use an Input Mask for Phone Numbers, ZIP Codes

 S  M  L  XL  FS  |  Slo  Reg  Fast  2x  |  Bookmark Join Now

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:


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?


Members 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 database template from class plus get access to the Code Vault. If you signed up on YouTube you have to contact me so I can set up your account here on my web site. If you're not a member, Join Today!


In 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 Codes

Use 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.


Learn More

FREE Access Beginner Level 1
Access Level 2 for $1.00

Free Templates

TechHelp Free Templates
Blank Template
Contact Management
Order Entry & Invoicing
More Access Templates


Mailing List - Get Emails When New Videos Released!
Consulting - Need Help with Your Database?


Please feel free to post your questions or comments below or submit them via the TechHelp page.


microsoft 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


Input Mask Upload Images   Link  
James Musick 
16 days ago
Wow - Timely. Just created an Input Mask "CA-A-20-12-12074"with minimal tweaking. Simply changed a number field to short text and the mask worked, perfectly, the first time.  Cheers
Add a Reply

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

You may want to read these articles from the 599CD News:

1/22/2022Next Appointment
1/18/2022Access B2 Upgrade
1/17/2022Access Beginner 2 Links
1/17/2022Access Beginner 2
1/17/2022New Record on Top
1/13/2022Missing References
1/13/2022Access Beginner 1 Links
1/11/2022Access Fast Tips
1/11/2022System Defaults

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
My Account
My Courses
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
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