G
Guest
Hello, I need to limit a few memo txtboxes to 300 characters. I have searched
the net and could only find this code but I want to have a msg if the limit
was exceeded. How is this done? Thanks!
Private Sub MyTextBox_Change()
If Len(Me.MyTextBox.Text & "") > 300
Me.MyTextBox = Left(Me.MyTextBox.Text,300)
Me.MyTextBox.SelStart = 300
End If
End Sub
the net and could only find this code but I want to have a msg if the limit
was exceeded. How is this done? Thanks!
Private Sub MyTextBox_Change()
If Len(Me.MyTextBox.Text & "") > 300
Me.MyTextBox = Left(Me.MyTextBox.Text,300)
Me.MyTextBox.SelStart = 300
End If
End Sub