Please can somebody help?
I have used the code below to build a scroll bar. Could somebody tell me how to stop the text scrolling after twice viewing the message? I would like the text to completely disappear after it has scrolled twice.
code:
Private sub Form_Timer
Static strMsg As String
Static intLet As Integer
Static intLen As Integer
Dim strTmp As String
Const strLen = 40
If Len (strMsg) = 0 Then
strMsg = Space(strLen) & "Welcome to the new system" & Space (strLen)
End If
intLet = intLet +1
If intLet > intLen Thet
intLet = 1
End If
strTmp = Mid(strMsg, intLet, intLen)
Me!lblScroll.Caption(strLen) Then
intLet = 1
End If
End Sub
I have used the code below to build a scroll bar. Could somebody tell me how to stop the text scrolling after twice viewing the message? I would like the text to completely disappear after it has scrolled twice.
code:
Private sub Form_Timer
Static strMsg As String
Static intLet As Integer
Static intLen As Integer
Dim strTmp As String
Const strLen = 40
If Len (strMsg) = 0 Then
strMsg = Space(strLen) & "Welcome to the new system" & Space (strLen)
End If
intLet = intLet +1
If intLet > intLen Thet
intLet = 1
End If
strTmp = Mid(strMsg, intLet, intLen)
Me!lblScroll.Caption(strLen) Then
intLet = 1
End If
End Sub