I'm trying to open another database and close the original by clicking on a button on a form (the second database will then backup the first). I'm very much an MVB novice and am blundering around a bit, but I've almost got it working using a Call Shell command. Only the path I am using for the .mdb file isn't accepted in full:
I'm using:
Call Shell("C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE D:\Users\Joe Brown\Documents\Database Stuff\Backup.mdb", 1)
But the program seems to try and open a file called "Joe.mdb", implying that it doesn't like the spaces in the address - yet it's quite happy with the address for the MSACCESS.EXE file. It works fine if I place "Backup.mdb" in the "Users" folder and change the address accordingly.
Is it looking for a DOS address, and if so how do I find this? Or does anyone have any better suggestions as to how I do this?
Many thanks
I'm using:
Call Shell("C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE D:\Users\Joe Brown\Documents\Database Stuff\Backup.mdb", 1)
But the program seems to try and open a file called "Joe.mdb", implying that it doesn't like the spaces in the address - yet it's quite happy with the address for the MSACCESS.EXE file. It works fine if I place "Backup.mdb" in the "Users" folder and change the address accordingly.
Is it looking for a DOS address, and if so how do I find this? Or does anyone have any better suggestions as to how I do this?
Many thanks