The first thing to do when confused is use Access' own help files. If the item in question is something used in VBA code (such as LEN) go into the code module for any form, then invoke the help and enter the term you're interested in.
You'll get an explanation and usually (as in LEN) an example of how it's used. As Skip said, LEN returns the length of a string of text. If, say, you have a text box that holds a Parts Number, and all Parts Numbers have to be 10 characters long, you could check the entered number to be sure that it is.
In the Private Sub txtPartsNumber_BeforeUpdate() you could put this code:
If LEN(txtPartsNumber) <> 10 then
'Place a warning message here
End If
If the txtPartsNumber isn't 10 characters long, you can warn the user.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.