That code goes in a general module I named Customization.
It gets called behind form that opens by default when db opens. For my purposes, the line is:
If Me!Permissions <> "admin" Then Call SetAccessXCloseButton(False)
Yes, I was confused. I thought you meant the Close action by click on the A icon at top left of app window.
Sorry, I have nothing for the Windows taskbar other than possibly hiding the Access app window (I never implemented) https://stackoverflow.com/questions/...nd-and-taskbar