Link to home
Start Free TrialLog in
Avatar of Gontran Harvey
Gontran HarveyFlag for Canada

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,


Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

How about using a startup macro to run your code...? Just hide everything and let it do its work
Avatar of Gontran Harvey

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

Open in new window

The application starts and immediately is getting minimized
ASKER CERTIFIED SOLUTION
Avatar of Gustav Brock
Gustav Brock
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks guys, the Gustav Brock solution do the trick, it's almost not perceptive by the user.