Better not to post code that might be dangerous in the first place...!
Then why on earth didn't you say so earlier. I've been banging on about this repeatedly since post #10 and failing to get any response.
I purposely uploaded an app which is only fully functional when Access is run as an administrator.
Doing this gives elevated privileges e.g. to edit the HKLM hive of the registry (with CARE!)
Right click on the Access icon on the desktop and click as Run As Administrator option
View attachment 96629
Or right click on the Start menu Access icon then look in the More ... section.
NOTE:
1. If you can't see that option (e.g. in A2010), hold the shift key down then proceed as above.
2. Any registry changes you make by doing this are entirely at your own risk. However, my app I mentioned in post #20 is totally safe!