Create a new module. If you do not see the two words "Option Explicit" as the
second line of code in this new module, then follow the instructions shown in
this "Gem Tip" to configure your VBA editor:
Always Use Option Explicit
http://www.access.qbuilt.com/html/gem_tips.html#VBEOptions
While you are there, I suggest deselecting the options to Compile on Demand.
Copy the code shown in the page, and paste it into your new module. Save the
module, giving it a name *different* from the name of the function that you
just pasted. For example, you might name it: basManipulateAccessWindow
Click on Debug > Compile {ProjectName}. Hopefully, your code will compile
without any errors. You'll know right away if you get a compile error. If the
option appears to be greyed out the second time you try it, then this is a
good sign--it means that your code compiled without an error.
To test it, try opening a switchboard type form first, so that you'll have a
form open. Then press the <Ctrl> <G> at the same time, to open the Immediate
Window. Copy the following command shown in this procedure, and paste it into
the Immediate Window:
?fSetAccessWindow(SW_HIDE)
Then hit the <Enter> key and see what happens.
If you like the effect after you've had a chance to experiment with it, then
you could add a call to this function in an Autoexec macro.
Tom Wickerath
Microsoft Access MVP
https://mvp.support.microsoft.com/profile/Tom
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________