Use String Functions to Validate Part Numbers in Microsoft Access: Left, Right, Mid, Len, InStr

Computer Learning Zone
Computer Learning Zone
9.3 هزار بار بازدید - 3 سال پیش - In this video I will
In this video I will teach you how to use the string functions in Microsoft Access to make sure users are entering valid part numbers according to a set of rules. We will learn about the Left, Right, Mid, Len, and InStr functions.

Zoe from Great Falls, Montana (a Platinum Member) asks: When placing an order with our primary supplier, we have to make sure the part number is valid. They have a gigantic database of parts, and it changes constantly, so looking up each part number isn't practical. They do, however have a specific format for all of their part numbers. If I could just make sure my users are typing the part numbers in the correct format, that would eliminate 99% of my problems. I import most of this data from Excel sheets, so I can't use an Input Mask. You wouldn't believe the junk I have to correct! Can you help me, please!?

Part numbers have to start with the letter P. The right 3 characters have to be a number greater than 100. The 5th character has to be a hyphen. The whole string has to be exactly 9 characters long. The letter X must be included somewhere in the string.

Silver Members and up get access to an Extended Cut of this video. Members will learn how to use the string functions in VBA to make sure users are entering in valid passwords. We will learn how to do a binary search (to tell capital from lowercase letters) with Option Compare Binary or StrComp function, and to determine if a string contains ANY character from an allowed list. We'll write our own IsFound function - is any character from string 1 found inside of string 2.

Leon from Bismark, North Dakota (a Gold Member) asks: I created a form allowing my employees to change their password. They must enter their current password and then create a new password, and verify the password by entering it twice. I check that the new password is not the same as the current password. I want to include all the parameters that strengthens the password. I appreciate your help.

The first character has to be a capital letter. The password must contain both capital and lowercase letters, plus at least one numeric digit and one special character: !-_#$@%+

MEMBERS VIDEO:
String Functions - Change Password Ve...

BECOME A MEMBER:
YouTube: @599cd
or My Site: https://599cd.com/THMember

LEARN MORE:
https://599cd.com/StringFunctions

LINKS:
IIF Function: https://599cd.com/IIF
Calculated Query Fields: https://599cd.com/Calculated
Conditional Formatting: https://599cd.com/Conditional
Access Expert 25 String Functions: https://599cd.com/ACX25
Simple Security: https://599cd.com/SimpleSecurity
Security Seminar: https://599cd.com/Security

COURSES:
FREE Access Beginner Level 1: https://599cd.com/Free1
$1 Access Level 2: https://599cd.com/1Dollar

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

ADDITIONAL RESOURCES:
Get on my Mailing List: https://599cd.com/YTML
Contact Me: https://599cd.com/Contact
TechHelp: https://599cd.com/TechHelp
Paid TechHelp Questions: https://599cd.com/TechHelpPaid
Consulting Help: https://599cd.com/Consulting
Twitter: Twitter: LearningAccess
https://en.wikipedia.org/wiki/Microso...
https://products.office.com/en-us/access
https://microsoft.com/en-us/microsoft...

KEYWORDS:
microsoft access, ms access, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #instruction, #learn, #lesson, #training, #database, left, right, mid, len, instr, strcomp, part numbers, change passwords, option compare binary, capital, lowercase, numeric, digits, one string found inside another, isfound, any character found in a string, allowed characters list

QUESTIONS:
Please feel free to post your questions or comments below. Thanks.
3 سال پیش در تاریخ 1400/04/08 منتشر شده است.
9,378 بـار بازدید شده
... بیشتر