The information in this article applies to:
SUMMARY
Text boxes in Microsoft Access do not support using the ENTER key to
add lines within a field. When ENTER is pressed in a text box, the next
field or control is selected. This article describes a sample function
that you can use to modify the action that results when you press ENTER so
that a line is added to the current field instead of selecting the next
field.
MORE INFORMATION
The following sample function changes the behavior of the ENTER key in
text boxes to allow adding lines instead of selecting a different field
or control. This code should be attached to the BeforeUpdate event of the
text box:
The following is the sample function MakeEnterWork():
NOTE: Some change must be made to the text box before this function will work because Microsoft Access evaluates controls only after they have been modified. Additional query words: carriage return memo textbox
Keywords : kbusage GnlGlobl |
Last Reviewed: March 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |