I am tinkering with various ways to "lock down" my front end.
Up to this point, I have just made my users FE an .accdr (run time) file. It works, but looks junky in my opinion and is really easily bypassed.
I have also done simple VBA to hide the ribbon and navigation pane:
However, when I personally launch the app, I would like to have both visible to me. I have read a some on using VBA to check windows username and hold as a string. If I haven't gotten one to work yet however.
What would the code be to check the username of whos logged into windows and if it is my username, exit sub before the above code runs and disables those panes?
I did try:
stackoverflow.com
That didn't work however.
Long story short, Code to check if windows username is say, tmyers, then exit.
Up to this point, I have just made my users FE an .accdr (run time) file. It works, but looks junky in my opinion and is really easily bypassed.
I have also done simple VBA to hide the ribbon and navigation pane:
Code:
DoCmd.ShowToolbar "Ribbon", acToolbarNo
DoCmd.NavigateTo "acNavigationCategoryObjectType"
DoCmd.RunCommand acCmdWindowHide
However, when I personally launch the app, I would like to have both visible to me. I have read a some on using VBA to check windows username and hold as a string. If I haven't gotten one to work yet however.
What would the code be to check the username of whos logged into windows and if it is my username, exit sub before the above code runs and disables those panes?
I did try:

How to use system username directly in MS Access query?
I would like to know if there is a way to get system username and use it directly in an MS Access query. I have made a parameter work within a query from a combo box on a form and I have also acqui...
Long story short, Code to check if windows username is say, tmyers, then exit.