TextBox.EnterKeyBehavior property (Access)

You can use the EnterKeyBehavior property to specify what happens when you press Enter in a text box control in Form view or Datasheet view. Read/write Boolean.



expression A variable that represents a TextBox object.


For example, you can use this property if you have a control bound to a Memo field in a table to make entering multiple-line text easier. If you don't set this property to New Line In Field, you must press Ctrl+Enter to enter a new line in the text box.

You can also set the default for this property by setting a control's DefaultControl property in Visual Basic.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.