how to only show first 20 words of a memo field

  • Thread starter Thread starter sheniece via AccessMonster.com
  • Start date Start date
S

sheniece via AccessMonster.com

I have a memo field on a form, how can i show the first 30 characters and
add 3 periods after the first 30 words.
 
Use the Split Ubound function to get the number of words in your memo.

Dim strWords() As String
Dim iNumber As Integer
strWords = Split(YourMemoAsString, " ")
iNumber = UBound(strWords) + 1

iNumber is how many words there are in your memo.
 
Back
Top