Gontran Harvey
asked on
Open Access database hiden (not visible) from Windows Shortcut
I would like to open an Access Database as not visible. But I need it to work in a Windows shortcut with a switch like:
"C:\Program Files (x86)\Microsoft Office\root\Office16\MSACCESS.EXE" "D:\MyDbToOpen.accdb / TheSwitch "
This database just execute code and close after it and I don't what to see any screen.
I know how to do it by vbscript, but for this particular use I need it to be in a Windows shortcut.
I need something that do not involve the anti-virus protection like a vbscript etc...
Thanks,
How about using a startup macro to run your code...? Just hide everything and let it do its work
ASKER
You can see the access screen. I only have code executed. No form involve.
Just put this on a startup function for an application for a friend of mine
Application.RunCommand acCmdAppMinimize
DoCmd.Minimize
The application starts and immediately is getting minimized
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks guys, the Gustav Brock solution do the trick, it's almost not perceptive by the user.