How do you wrap text in Access? It’s a question we hear quite frequently on Office.com. It may surprise you to learn that in most places where text is displayed in Access, text wrapping is on by default. The key is making sure there is enough room for the text to wrap. The process for doing that depends on what kind of object you’re working with.
In a datasheet
In a datasheet view, you need to manually adjust the row height before you can see the text that wraps to subsequent lines. The catch is that the new row height applies to all rows in the datasheet, so the datasheet takes up more vertical space and you wind up doing more scrolling to view all your records.
In a report
On reports, you can set the CanGrow property of text boxes and report sections to Yes, which lets them adjust their heights automatically based on the amount of text they contain. This makes for a better presentation than a datasheet, because each row is set to the necessary height for that record. If you create a simple report by using the Report tool on the Create tab, you’ll see the CanGrow property in action.
In a form
You can also set the CanGrow property for a control on a form; however, the setting only takes effect when you print the form or view it in Print Preview. If the form is only to be viewed on the screen, you’ll just need to design your form so that text boxes that are likely to contain lots of text are larger than the others. The text will wrap automatically, and scroll bars will appear by default when there is still too much text to display (unless, of course, you’ve turned scroll bars off in the Property Sheet).
Another tip for forms: check out the control “anchoring” feature, which was introduced in Access 2007 and is described in the video Make a text box grow or shrink as you resize a form. You can use this feature to make a text box automatically get wider or taller as you resize the form or the Access window. In Layout View or Design View, the Anchoring command is located on the Arrange tab.
One other tip–if you just want to see the full contents of one field without doing any resizing, put the cursor in the field and then press SHIFT+F2 to open the Zoom dialog box.
Any text wrapping tips or tricks that I’ve overlooked? Leave a comment and let us know!