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

  Рет қаралды 9,433

Computer Learning Zone

Computer Learning Zone

Күн бұрын

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 - Cha...
BECOME A MEMBER:
KZbin: / @599cd
or My Site: 599cd.com/THMember
LEARN MORE:
599cd.com/StringFunctions
LINKS:
IIF Function: 599cd.com/IIF
Calculated Query Fields: 599cd.com/Calculated
Conditional Formatting: 599cd.com/Conditional
Access Expert 25 String Functions: 599cd.com/ACX25
Simple Security: 599cd.com/SimpleSecurity
Security Seminar: 599cd.com/Security
COURSES:
FREE Access Beginner Level 1: 599cd.com/Free1
$1 Access Level 2: 599cd.com/1Dollar
FREE TEMPLATE DOWNLOADS:
TechHelp Free Templates: 599cd.com/THFree
Blank Template: 599cd.com/Blank
Contact Management: 599cd.com/Contacts
Order Entry & Invoicing: 599cd.com/Invoicing
More Access Templates: 599cd.com/AccessTemplates
ADDITIONAL RESOURCES:
Get on my Mailing List: 599cd.com/YTML
Contact Me: 599cd.com/Contact
TechHelp: 599cd.com/TechHelp
Paid TechHelp Questions: 599cd.com/TechHelpPaid
Consulting Help: 599cd.com/Consulting
Twitter: / learningaccess
en.wikipedia.org/wiki/Microso...
products.office.com/en-us/access
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.

Пікірлер: 25
@petewarby7158
@petewarby7158 11 ай бұрын
Omg is there nothing you don't know. This series of tutorials are EXCEPTIONAL
@homeheart1276
@homeheart1276 2 жыл бұрын
[2:38] "I know you need this for real work. The rest of us are just goofing around" lol! This is one of the reasons why I love you man. Thank you :)
@599CD
@599CD 2 жыл бұрын
8-)
@luzkrg
@luzkrg 3 жыл бұрын
Really interesting, thank you! 🤩
@599CD
@599CD 3 жыл бұрын
My pleasure!
@jstan3076
@jstan3076 3 жыл бұрын
Thank you , Professor Access , it help me too
@599CD
@599CD 3 жыл бұрын
You're welcome
@user-dz8uv8ks4h
@user-dz8uv8ks4h 2 жыл бұрын
Hi Richard! First of all, I learn A LOT from you! Thank you so much for your educational videos. I have a little problem that it not seems to be solved with these 5 methods and I bet you can help: I need to find all the records that contain fructure of a string from another string, in a case like this: "ABCDEF" - will return "ABC", "BCD", "CDE" and so on... if they are exist... I tried to figure it out, with no luck.. Thanks a lot in advanced!!!
@599CD
@599CD 2 жыл бұрын
Sounds like a job for InStr
@gregorytaylor2749
@gregorytaylor2749 3 жыл бұрын
Good video! I work a lot with string validation, so I sometimes write an expression like: IsValid:IIF(P LIKE "[P]???-?[1-9]##" AND P LIKE "*X*","VALID" , "*INVALID*")
@599CD
@599CD 3 жыл бұрын
Thanks for sharing!
@msiitian4064
@msiitian4064 2 жыл бұрын
Great
@599CD
@599CD 2 жыл бұрын
thx
@artistryartistry7239
@artistryartistry7239 2 жыл бұрын
Thanks! What would be the syntax for the criteria entry on a particular field in query designer? Len([Field Name])
@599CD
@599CD 2 жыл бұрын
Put Len(FieldName) up top and the
@adamsanaf
@adamsanaf Жыл бұрын
Thanks Richard. Helpful tutorial. I hope i could pick your brain abit. I am planning to create a database with a scanning feature. The thing is when i scan the dmc code, it gives out a 48 character string and out 48 characters, i need only two parts of it, i.e the 26th to 35th characters and the 40th to 48th characters. The first one acts as a foreign key while the second one acts as a entry name. Do u know how could i extract these numbers from the string? Thank you in advance
@599CD
@599CD Жыл бұрын
Pick here: 599cd.com/ask
@Thanogr1
@Thanogr1 3 жыл бұрын
Gee thanks for the idea of breaking down the solution
@599CD
@599CD 3 жыл бұрын
You're welcome
@sudipsukantapaul9109
@sudipsukantapaul9109 3 жыл бұрын
How to make Part Number like following format :- YYYYMMDD-001 001, 002, 003 and so on.... On every new day. Please help
@599CD
@599CD 3 жыл бұрын
599cd.com/Counter
@botskie2354
@botskie2354 3 жыл бұрын
Good day sir, I wanna ask if is it possible to make this in access if I Have an item with amount 5000.00 and paying for 3 years... And I want to calculate and auto matically input in a table or query ... Like example of this client credit 5000 wnd every month is showing like this , jan-1-21 - 138.88, feb .1 -21 138.88 , mar.1,21- 138.88 And it will auto matically end Until reach the 5000.00 I hope you read this Thank you and have more subscriber ....
@599CD
@599CD 3 жыл бұрын
Of course it's possible. Is this an amortized loan, or just a simple non-interest payment? If the former, see 599cd.com/amort
@RitaFonsecaSanchez
@RitaFonsecaSanchez 3 ай бұрын
No funciona, sale error
@599CD
@599CD 3 ай бұрын
Huh?
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 21 МЛН
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 13 МЛН
THE POLICE TAKES ME! feat @PANDAGIRLOFFICIAL #shorts
00:31
PANDA BOI
Рет қаралды 25 МЛН
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 15 МЛН
How to Use Left, Right, Mid, Instr, and Trim on Strings in MS Access and VBA
15:59
Sean MacKenzie Data Engineering
Рет қаралды 7 М.
How to Create String Aggregates in Microsoft Access
20:22
Sean MacKenzie Data Engineering
Рет қаралды 2,5 М.
12 Tips to Get More Done Using Microsoft Outlook
26:43
Jonathan Edwards
Рет қаралды 73 М.
3 Essential Excel skills for the data analyst
18:02
Access Analytic
Рет қаралды 1,5 МЛН
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 21 МЛН