I need to be able to run a batch file that opens Access at a specific record. This I can do, but now I need to also run it on either 32 or 64 bit systems.
Our company uses a mix of systems.
This is what I have so far:
if EXIST "C:\Program Files\Microsoft Office\root\Office16\MSACCESS.EXE"
GOTO x64
ELSE GOTO x32
:x64
start "" "C:\Program Files\Microsoft Office\root\Office16\MSACCESS.EXE" "K:\R&D Dept\Development Lab\R&D Test Request System (For testing and training)\DataBase\R&D Project Requests DB.accdb" /x mcrEmail /cmd 1912
:x32
start "" "C:\Program Files (x86)\Microsoft Office\root\Office16\MSACCESS.EXE" "K:\R&D Dept\Development Lab\R&D Test Request System (For testing and training)\DataBase\R&D Project Requests DB.accdb" /x mcrEmail /cmd 1912
pause
I tried running this is the trial version of CMDebug, when I hit the :x64 line my program runs but then it also hits the :x32 line.
When trying to run this just as a batch file by clicking on it nothing happens. I'm running Access 2016 on a 64 bit system, Windows 10. My office apps are also 64 bit.
Not sure what I'm going wrong?