Passing parameters between forms in MS Access

后端 未结 5 447
挽巷
挽巷 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:46

    Why not create a public function which stores &/or retrieves a global variable that you store after the first form is executed? This would allow you to not only use it on one or more forms, but also as criteria within a query (for example, to return records which match the user name you've stored).

    I agree this is "fake" security, but there also times when it's sufficient for your needs. I've implemented this before, where I match the environment string username to an entry in a user table.

    BTW, I refer to this feature as personalization, not security.

    Just a thought.

提交回复
热议问题