Using the KeyPress Event to Allow or Disallow Specific Characters in Microsoft Access
In this Microsoft Access tutorial, I will show you how to enforce data entry rules for names, ensuring only capital letters A-Z are allowed in fields, without special characters or spaces. We'll utilize the key press event and VBA code to restrict unwanted characters, providing you with a robust solution for maintaining data integrity.
Sadie from Alpharetta, Georgia (a Platinum Member) asks: My client is very strict about how names are entered in our database. For the First Name and Last Name fields, they only want capital letters. No spaces, no apostrophes, no special characters, or numbers. Just A-Z and nothing else. Is there a way to enforce this in Microsoft Access? Can this be done with just an input mask, or do I need to use VBA?
BECOME A MEMBER:
YouTube: https://youtube.com/channel/UCl7-jJie4ifOVK87FINIuDg/join
or My Site: https://599cd.com/THMember
LEARN MORE:
KeyPress: https://599cd.com/KeyPress
PREREQUISITES:
Intro to VBA: https://599cd.com/VBA
If Then: https://599cd.com/IfThen
LINKS:
Input Mask: https://599cd.com/InputMask
After Update: https://599cd.com/AfterUpdate
Change Case: https://599cd.com/ChangeCase
ByRef v ByVal: https://599cd.com/ByRef
ASCII Chart: https://599cd.com/ASCIIChart
Wikipedia: https://simple.m.wikipedia.org/wiki/File:ASCII-Table-wide.svg
Disable Copy Paste: https://599cd.com/DisableCopyPaste
RECOMMENDED COURSES:
Search As You Type in Access Developer 8: https://599cd.com/ACD8
Search As You Type in Search Seminar: https://599cd.com/SearchSeminar
Access Developer Courses: https://599cd.com/Developer
FREE TEMPLATE DOWNLOADS:
TechHelp Free Templates: https://599cd.com/THFree
Blank Template: https://599cd.com/Blank
Contact Management: https://599cd.com/Contacts
Order Entry & Invoicing: https://599cd.com/Invoicing
More Access Templates: https://599cd.com/AccessTemplates
DIAMOND SPONSORS:
More info on our Sponsors: https://599cd.com/DiamondSponsors
ADDITIONAL RESOURCES:
FREE Access Beginner Level 1: https://599cd.com/Free1
How to Use Access in 30 Minutes: https://599cd.com/30Minutes
$1 Access Level 2: https://599cd.com/1Dollar
Donate to my Tip Jar: https://599cd.com/TipJar
Get on my Mailing List: https://599cd.com/YTML
Contact Me: https://599cd.com/Contact
TechHelp: https://599cd.com/TechHelp
Consulting Help: https://599cd.com/DevNet
Twitter: https://twitter.com/LearningAccess
https://en.wikipedia.org/wiki/Microsoft_Access
https://products.office.com/en-us/access
https://microsoft.com/en-us/microsoft-365/blog/access/
KEYWORDS:
TechHelp, Access 2016, Access 2019, Access 2021, Access 365, Microsoft Access, MS Access, MS Access Tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, input mask, capital letters only, key press event, VBA key ASCII, character validation, enforce data entry rules, ASCII uppercase range, Access form design, preventing invalid input, event handling, character filter, uppercase conversion, Access field validation
QUESTIONS:
Please feel free to post your questions or comments below. Thanks.
Live long, and prosper.
Видео Using the KeyPress Event to Allow or Disallow Specific Characters in Microsoft Access канала Computer Learning Zone
Sadie from Alpharetta, Georgia (a Platinum Member) asks: My client is very strict about how names are entered in our database. For the First Name and Last Name fields, they only want capital letters. No spaces, no apostrophes, no special characters, or numbers. Just A-Z and nothing else. Is there a way to enforce this in Microsoft Access? Can this be done with just an input mask, or do I need to use VBA?
BECOME A MEMBER:
YouTube: https://youtube.com/channel/UCl7-jJie4ifOVK87FINIuDg/join
or My Site: https://599cd.com/THMember
LEARN MORE:
KeyPress: https://599cd.com/KeyPress
PREREQUISITES:
Intro to VBA: https://599cd.com/VBA
If Then: https://599cd.com/IfThen
LINKS:
Input Mask: https://599cd.com/InputMask
After Update: https://599cd.com/AfterUpdate
Change Case: https://599cd.com/ChangeCase
ByRef v ByVal: https://599cd.com/ByRef
ASCII Chart: https://599cd.com/ASCIIChart
Wikipedia: https://simple.m.wikipedia.org/wiki/File:ASCII-Table-wide.svg
Disable Copy Paste: https://599cd.com/DisableCopyPaste
RECOMMENDED COURSES:
Search As You Type in Access Developer 8: https://599cd.com/ACD8
Search As You Type in Search Seminar: https://599cd.com/SearchSeminar
Access Developer Courses: https://599cd.com/Developer
FREE TEMPLATE DOWNLOADS:
TechHelp Free Templates: https://599cd.com/THFree
Blank Template: https://599cd.com/Blank
Contact Management: https://599cd.com/Contacts
Order Entry & Invoicing: https://599cd.com/Invoicing
More Access Templates: https://599cd.com/AccessTemplates
DIAMOND SPONSORS:
More info on our Sponsors: https://599cd.com/DiamondSponsors
ADDITIONAL RESOURCES:
FREE Access Beginner Level 1: https://599cd.com/Free1
How to Use Access in 30 Minutes: https://599cd.com/30Minutes
$1 Access Level 2: https://599cd.com/1Dollar
Donate to my Tip Jar: https://599cd.com/TipJar
Get on my Mailing List: https://599cd.com/YTML
Contact Me: https://599cd.com/Contact
TechHelp: https://599cd.com/TechHelp
Consulting Help: https://599cd.com/DevNet
Twitter: https://twitter.com/LearningAccess
https://en.wikipedia.org/wiki/Microsoft_Access
https://products.office.com/en-us/access
https://microsoft.com/en-us/microsoft-365/blog/access/
KEYWORDS:
TechHelp, Access 2016, Access 2019, Access 2021, Access 365, Microsoft Access, MS Access, MS Access Tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, input mask, capital letters only, key press event, VBA key ASCII, character validation, enforce data entry rules, ASCII uppercase range, Access form design, preventing invalid input, event handling, character filter, uppercase conversion, Access field validation
QUESTIONS:
Please feel free to post your questions or comments below. Thanks.
Live long, and prosper.
Видео Using the KeyPress Event to Allow or Disallow Specific Characters in Microsoft Access канала Computer Learning Zone
TechHelp Access 2016 Access 2019 Access 2021 Access 365 Microsoft Access MS Access MS Access Tutorial #msaccess #microsoftaccess #help #howto #tutorial #learn #lesson #training #database input mask capital letters only key press event VBA key ASCII character validation enforce data entry rules ASCII uppercase range Access form design preventing invalid input event handling character filter uppercase conversion Access field validation
Комментарии отсутствуют
Информация о видео
2 января 2025 г. 19:00:07
00:24:56
Другие видео канала