Press enter in textbox and execute button function in VBA

前端 未结 5 884
春和景丽
春和景丽 2020-12-11 06:23

I have a login form to my database done in Access 2010 and using VBA code. I want to be able to press Enter on txtboxPassword and automatically execu

5条回答
  •  情歌与酒
    2020-12-11 06:59

    On the button you wish to action go to properties 'Other' and set the 'Default' to Yes. Then when you click on enter when in the text box it will action the button.

提交回复
热议问题