In my previous blog post, I wrote about Adding Rich Text Formatting to MS Access Data. However, there was one related topic which I didn't cover - ie how to change the entry key behaviour to allow new lines within a text box. This is done by changing the ENTRY KEY BEHAVIOR property of the text box in question.
The ENTRY KEY BEHAVIOR property set to
NEW LINE IN FIELD for the txtDescription text box.
|
If we left the ENTRY KEY BEHAVIOR property at its default setting, it would not be possible for a user to create a new paragraph within the text box whenever they hit the ENTER key. What we need to do, therefore, is change the property value from DEFAULT to NEW LINE IN FIELD. This is how:
- Open the form in DESIGN VIEW.
- Select the text box control to be modified by clicking it.
- Open the PROPERTY SHEET by clicking the icon in the TOOLS group of the DESIGN ribbon (if it's not already open).
- Click the OTHER tab on the property sheet.
- Locate the ENTRY KEY BEHAVIOR property and change the value to NEW LINE IN FIELD.
Once the property has been changed, the user can enter text in the text box and use the ENTER key to create a new paragraph without the focus shifting to the next control in the tab order.
Above: Example of a text box with the ENTRY KEY BEHAVIOR property modified to
NEW LINE IN FIELD.
|
No comments:
Post a Comment