omnialive
Registered User.
- Local time
- Today, 08:10
- Joined
- Sep 17, 2010
- Messages
- 23
SOLVED: Is there a way to check MSACCESS.EXE cmd line arguments?
I am very new still to window's programming. Working with MS Access and VBA has been my first venture so far.
How my code currently works, is that a user will double-click on the application.accdb file, which launches the full version of MS Access. This is equivalent to creating a desktop shortcut like:
"<path to access>/msaccess.exe <path to db>/application.accdb"
I know how to do several things like fake a runtime:
"<path to access>/msaccess.exe <path to db>/application.accdb /runtime"
As well as make an execute-only version (*.accde) which protects the VBA code or even compile a true runtime version with the appropriate packages.
What I am wanting to know is if it is possible to pass, from a customized desktop link or the windows cmd line, parameters that my VBA code can get a hold of and use for scheduled/batch application? I don't know if the MSACCESS.EXE allows for the passing of custom parameters in this fashion. Something like:
"<path to access>/msaccess.exe <path to db>/application.accdb /customargs=mode:batch;autoverify:true"
When the database launches, there is a Startup form that auto launches currently.
Is this type of functionality only available if I split the database from the forms and VBA code or even available at all? I did some searches in this forum and couldn't find anything. Maybe if I knew more about Windows programming I would know how to handle this.
This application will be deployed in a Citrix environment, so there is no worry about the end-users getting to the shortcut and modifying it to bypass or cause strange actions.
I am very new still to window's programming. Working with MS Access and VBA has been my first venture so far.
How my code currently works, is that a user will double-click on the application.accdb file, which launches the full version of MS Access. This is equivalent to creating a desktop shortcut like:
"<path to access>/msaccess.exe <path to db>/application.accdb"
I know how to do several things like fake a runtime:
"<path to access>/msaccess.exe <path to db>/application.accdb /runtime"
As well as make an execute-only version (*.accde) which protects the VBA code or even compile a true runtime version with the appropriate packages.
What I am wanting to know is if it is possible to pass, from a customized desktop link or the windows cmd line, parameters that my VBA code can get a hold of and use for scheduled/batch application? I don't know if the MSACCESS.EXE allows for the passing of custom parameters in this fashion. Something like:
"<path to access>/msaccess.exe <path to db>/application.accdb /customargs=mode:batch;autoverify:true"
When the database launches, there is a Startup form that auto launches currently.
Is this type of functionality only available if I split the database from the forms and VBA code or even available at all? I did some searches in this forum and couldn't find anything. Maybe if I knew more about Windows programming I would know how to handle this.
This application will be deployed in a Citrix environment, so there is no worry about the end-users getting to the shortcut and modifying it to bypass or cause strange actions.
Last edited: