Forum Discussion
Access 2010 to professional plus 2019
Hi
1. Just to be clear, you want the form to open at the first record not the last. Normally, that would happen anyway unless your code is preventing it. However you could add this line to the Form_Load event: DoCmd.GoToRecord , , acFirst
2. It is certainly possible to password protect a form (or report) though I've only ever done this to make users enter a password before opening a form with confidential data. I'm not sure why you would add a password to prevent the form being closed. Why not just remove the close button in the title bar or prevent the form being closed until certain actions have been performed? At some point the form will have to be closed anyway.
Do bear in mind that keyboard shortcuts such as Ctr+F4 can be used to forcibly close forms & indeed Alt+F4 closes the database itself. See https://support.microsoft.com/en-us/office/keyboard-shortcuts-for-access-70a673e4-4f7b-4300-b8e5-3320fa6606e2
Suggest you explain your purpose more clearly.
- George_HepworthOct 20, 2021Silver Contributor
Yvonnebatfink406 "... It's always opening up at the bottom of the new blank form instead of at the top, "
That is by design the way forms work. It's theoretically possible, I believe, to force a different behavior, but it's probably the path of least resistance to train your users to work with the default behavior.
The analogy I like to share is that using Access is somewhat like rowing a canoe. If you are trying to go upstream, against the basic design patterns of the software, you'll have to work a lot harder, i.e. paddle your canoe ferociously, to make any progress. If you go downstream, with the basic design patterns of the software, you only need to use the paddle to steer.
To paraphrase the old saying, "go with the flow or paddle like crazy to get anywhere."
- Yvonnebatfink406Oct 20, 2021Copper ContributorI like it lol