I'm trying to use the code shown in https://www.accessforums.net/code-re...end-33331.html. All I did was change the name of the database, server, and server location but for some reason when it opens Access 2013, the error comes up that Access can't find database file %userprofile%\appdata\local\redirect\ui1.3.2013.ac cdr, which obviously means it's not creating the local front end copy.
I'm wondering if there might be something else I'm missing. I also tried removing the runtime since I'm not using that.
"The .bat file should read:
Code:
@echo off
REM file used to automatically update the Database when updates are available.
if not exist %userprofile%\appdata\local\redirect\ui1.3.2013.accdr echo Database needs to update to newer version.
if not exist %userprofile%\appdata\local\redirect\ui1.3.2013.accdr pause
@echo off
if not exist %userprofile%\appdata\local\redirect\ui1.3.2013.accdr if exist %userprofile%\appdata\local\redirect\ui*.accdr del %userprofile%\appdata\local\redirect\ui*.accdr
if not exist %userprofile%\appdata\local\redirect\ui1.3.2013.accdr Robocopy \\DUI_NAS\data\database %userprofile%\appdata\local\redirect ui1.3.2013.accdr
Start MSAccess.exe /runtime %userprofile%\appdata\local\redirect\ui1.3.2013.accdr
Exit
"