Counting Characters in a string

  • Thread starter Thread starter Les
  • Start date Start date
Just to clarify, Len("YourString") will return 9, since it's counting the
number of characters in the literal "YourString".

If you have a variable that contains the string value you want to check,
you'd use Len(nameofvariable)
 
Just to be sure you get what you want, recognize that the Len function also
counts spaces.

Len("MyString") = 8
Len("My String") = 9
 
Thanks
Good Point
Les
PC Datasheet said:
Just to be sure you get what you want, recognize that the Len function also
counts spaces.

Len("MyString") = 8
Len("My String") = 9

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
(e-mail address removed)
www.pcdatasheet.com
 
Back
Top