Z
Zikar
Hello group members,
I am having trouble with starting a database of which the path is specified
programatically. I know that the problem is due to a space in the name of the
folder in which the database resides. I do not have Administrator's
permission to change the name of the folder on the network. I am getting two
error mesaages which are:
(1) The command line you used to start Microsoft Office Access contains an
option that Microsoft Office Access doesn't recognize.
(2)Microsoft Office Access can't find the database file name'C:\Risk.mde'.
The code line is:
RetVal = Shell("C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE
Q:\Risk Management\RM.mde", 1)
this code runs if I exclude the space in the folder name
(example:Q:\Risk_Management).
I am also having the same problem if I specify the folder name with a space
by running the database from a shortcut.
Is there a way I can fix this code and the shortcut path to avoid the
"space" issue? I tried including the name string in between brackets and " "
but still did not work. I would greatly appreciate the help I would get to
solve this problem.
p.s. I am sure someone would be wondering, "why doesn't he use the server
path instead of the drive path?". This I will try as soon as I can solve the
"space" issue.
Thanks
I am having trouble with starting a database of which the path is specified
programatically. I know that the problem is due to a space in the name of the
folder in which the database resides. I do not have Administrator's
permission to change the name of the folder on the network. I am getting two
error mesaages which are:
(1) The command line you used to start Microsoft Office Access contains an
option that Microsoft Office Access doesn't recognize.
(2)Microsoft Office Access can't find the database file name'C:\Risk.mde'.
The code line is:
RetVal = Shell("C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE
Q:\Risk Management\RM.mde", 1)
this code runs if I exclude the space in the folder name
(example:Q:\Risk_Management).
I am also having the same problem if I specify the folder name with a space
by running the database from a shortcut.
Is there a way I can fix this code and the shortcut path to avoid the
"space" issue? I tried including the name string in between brackets and " "
but still did not work. I would greatly appreciate the help I would get to
solve this problem.
p.s. I am sure someone would be wondering, "why doesn't he use the server
path instead of the drive path?". This I will try as soon as I can solve the
"space" issue.
Thanks