I use WindowsXP Professional with several versions of Access and need to use a specific version to open a database over our network. Both the path to the version of Access I want to use (97, not the default Access2002) and the path to the database file I need to open contain spaces in the folder names like:
c:\Program Files\Microsoft Office\Office\MSAccess.exe z:\Shared Data\Databases\Access97 Databases\Accounts.mdb
Enclosing the full string in quotes (""
does not work, and neither does enclosing both paths in quotes, or nesting quotes. Although this is not an actual path in the example above, error messages would complain that z:\Shared.mdb cannot be found, taking the first space in the target path as the end of the string. The problem appears the same for both ordinary shortcuts and for expressions in VBA Subs. Apart from changing the folder names so they do not contain spaces, is there a solution?
c:\Program Files\Microsoft Office\Office\MSAccess.exe z:\Shared Data\Databases\Access97 Databases\Accounts.mdb
Enclosing the full string in quotes (""