Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
strResult = "blablabla" 'instead pile your query result into the variable
'trim it if too long
if Len(strResult) > 120 then
strResult = Left(strResult, 120) & "..."
end if
[/ignore][code]CodeHere
Function WordTrim(origStr,numWords)
Dim words
words = Split(origStr," ")
Dim count
If UBound(words) + 1 <= numWords Then
'we don't need to do anything, the sentance is shorter than numWords
WordTrim = origStr
Else
'we need to trim words off
Do Until count >= numWords
WordTrim = WordTrim & words(count)
count = count + 1
Loop
WordTrim = WordTrim & "..."
End If
End Function