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.
If Not IsNull(CommentsIn) Then
If Len(CommentsIn) < 32767 Then
CommentsIn.SelStart = Len(CommentsIn)
Else
SendKeys "^{END}"
End If
End If
[ol][li][blue]Len[/blue] returns a [blue]Long Integer[/blue]![/li]missinglinq said:[blue]your code will bomb if the Memo field is over half full, i.e. if the length is over 32767 characters. [purple]That's because Len takes an integer as a value.[/purple][/blue]
[blue] Me.Text2.Visible = True
Me.Text2.SetFocus[/blue]
[blue]Private Sub Text0_KeyDown(KeyCode As Integer, Shift As Integer)
[green]'Tab = 9, Return = 13[/green]
If (KeyCode = 9 Or KeyCode = 13) And (Me!Text2.Visible = False) Then
Me.Text2.Visible = True
Me.Text2.SetFocus
End If
End Sub
Private Sub Text2_GotFocus()
If Not IsNull(Me!Text2) Then
Me!Text2.SelStart = Len(Trim(Me!Text2))
End If
End Sub[/blue]