TextBox Text Property

  • Thread starter Thread starter Wayne
  • Start date Start date
W

Wayne

I have a text box control that contains 3,400 characters.
I do not want the user to exceed 3,400 characters.

This code works:

Me.txtMyText = Trim(Left(Me.txtMyText, 3400))

This code does not work.

Me.txtMyText.Text = Trim(Left(Me.txtMyText, 3400))

It throws error #2176, the setting for this property is
too long.

Is there another property I should be using instead? Will
it hurt anything to not use the Text property in this
case? What is the limit of the Text property?

Thanks!
 
Back
Top