I am looking forward to hide the Access background of my project when it’s running to give it a more professional look and make it running like a standalone application. I am using Access 2003 and a form is already opening when the project is loaded. I would like to add some code in the Private Sub Form_Open(Cancel As Integer) of that form to hide the Access background.
I am looking forward to hide the Access background of my project when it’s
Share
The following will work on older versions of Access (tested on Access 2003):
Just call
fSetAccessWindow(0)to hide andfSetAccessWindow(1)to show. Alternatively, usefSetAccessWindow(2)andfSetAccessWindow(3)to show minimized/maximized. You can use theGlobal Consttoo. Be careful: Access will be hidden from the taskbar.If it doesn’t work with Access 2010, here is another code that could work: http://www.tek-tips.com/faqs.cfm?fid=2562
The forms must be modal or it won’t work. If for some reason you messed up and Access is still running in background but not showing in the taskbar or the task-manager, double click on any Access project again (nothing will happen because Access is still running) and then press ALT+TAB to reach the Access icon (it should magically show up). Nothing happens again because it’s hidden, but it’s now possible to close it with ALT+F4 if it still has the focus, thus preventing you from rebooting your computer…