79416090

Date: 2025-02-05 20:15:34
Score: 0.5
Natty:
Report link

An Access application option Move After Enter exists, with three alternatives:

These can be set programmatically but it's easiest to go to Access Options > Advanced > Editing and tick the appropriate button. This option applies application-wide.

TextBox.EnterKeyBehavior has two options, Default and "New Line In Field". The latter overrides the application-wide Access option for that text box, and doubtless is the better choice for any multi-line text box.

Better to trigger the Submit button otherwise. Clicking on it is always an option. If it follows the text box in the tab order, then tabbing from the text box will highlight it and then, pressing Enter will trigger it.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: ebsf