Passing parameters between forms in MS Access

后端 未结 5 446
挽巷
挽巷 2020-12-03 11:23

I have created a login form named login where the username is typed into the txtEmployee textbox, and I need to display the same in the second page in another form in MS Acc

5条回答
  •  我在风中等你
    2020-12-03 11:48

    A couple ideas...

    Use the AfterUpdate event on the login username field to write the name to a global variable, then populate the field on the second page with the OnLoad event.

    Or, if you plan on leaving the log in form open at all times you could set the default value of the field directly to =[Forms]![LogInForm]![UserName]

提交回复
热议问题