Len
Using the LEN Function
In this tutorial you will learn how to use the LEN Function.
The LEN function returns an Integer containing the length of characters in a string.
=LEN( string )
string the value you wish to count
In this example we will work with a Name.
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
R | i | c | h | a | r | d | | R | o | s | t |
The result is 12.
Query
The results using a Query would be
FORM
In a Form you could set the Default Value of a Textbox to
=LEN("Richard Rost")
VBA
In a Form add a TEXTBOX control and rename it "txtLen", then you could add the following in the Load Event.
Private Sub Form_Load()
txtLen = Len("Richard Rost")
End Sub
Courses
Access Expert 14
Access 222
|
Access 308
|
Access 309
Seminars
Email
|
Data Encryption
Tips
See this FREE Tip on Len and many others.
Blog
See this Blog Post on the Len function.
Search
You can find more about this by searching the website.
By: Alex Hedley
Click here to sign up for more FREE tips
|