Microsoft Access A to Z: Breaking the first and last name out of a single field
HTML-код
- Опубликовано: 6 июл 2021
- This short screencast will examine the common relational database problem of entering the first, middle, and last names into a single field which makes it difficult to sort by last name or select only part of a name for a letter, email, or report. This screencast will show how to use an Access query to separate the pieces of a string by using calculated fields to separate out the parts of a field using Access built-in functions such as InStr(), Iif(), Len(), Left(), and Right()
All of my RUclipss can be found at: learncs.w3spaces.com/ Наука
This is super helpful, one of the reports I get comes with first and last name combined in the one column(annoying). This video has given me ideas on how to tackle it......Thank you🙂
You are very thoughtful to respond like this, and are also very welcome!
@@lfriedrichsen I appreciate the effort you go to in making these videos! Big 👍
Thank you
Thank you for taking the time to write. All of my RUclipss are organized at learncs.w3spaces.com. Take care.
Thank you, I got the Idea much appericiated.
Great. This is a very common data management problem.
Great 👍 👌
You're welcome! You can find all of my RUclipss organized at learncs.w3spaces.com/
How would you use the Trim formula with this?
It all depends on the data. If it has leading and/or trailing spaces in the full name, then the Trim function would be very helpful as it returns a string without leading and trailing spaces. Also, if there was more than one space between the first and last names, you could further scrub the first and last names using the Trim function.
Kindly how do you find names with a specific number of letters please?
In a query, you need to calculate the length of the name using the len function and then use query criteria to select only the records with whatever length you desire. An example of the calculated field named length to determine the length of the LastName field values using the Len function would be: length: Len([LastName])