Limit Text Box to only Accept one line of text

  • Thread starter Thread starter Addammer
  • Start date Start date
A

Addammer

I assume this is an easy fix.

How do I limit a text box to only allow one line of text? If I keep
typing it will wordwrap, but then when I open a report everything that
isn't on that list is not included.

Thanks,
Adam
 
I assume this is an easy fix.

How do I limit a text box to only allow one line of text? If I keep
typing it will wordwrap, but then when I open a report everything that
isn't on that list is not included.

Set the CanGrow property of the TextBoxes on the report to Yes. Then they will
expand as necessary to show all of the text.
 
well, you can set the FieldSize property for that field in the underlying
table, to "x" number of characters. the easiest way to get a "good" limit is
to type something in the form's textbox and count the characters; don't
forget to take into account that some letters are "fatter" than others and
may take up more space, so you'll want to err on the side of "smaller"
rather than "bigger" when setting the property.

rather than doing the above, you can open the report in Design view, click
on the textbox control in question, and set its' CanGrow and CanShrink
properties to Yes. then click on the section of the report that the control
is in, and set the *section's* CanGrow and CanShrink properties to Yes. this
allows the control's vertical size to reset automatically to provide enough
room for the text in the underlying field, and no more.

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top