try putting the database name in double quotes
"\zhast011\hast\dept\Project Management Finance\Projects dB\ProjectsData.mdb"
Anytime there is a space in a folder name you must enclose the whole thing in double quotes
Also I break apart the command like so
Dim ProgramName , DatabaseName , MacroName as string
Dim x as variant
ProgramName = "C:\Program Files\Microsoft Office\Office\msaccess.exe"
DatabaseName = "\zhast011\hast\dept\Project Management Finance\Projects dB\ProjectsData.mdb"
MacroName = "MyMacro"
x= Shell(ProgramName & " " & DatabaseName & " /X " & MacroName,1)
Also very important when using Access databases on a network:
See my 2 FAQ's on MDE'e
faq181-91 What is an .MDE and why do I need it?
faq181-90 How do I make an .MDE file DougP, MCP
Visit my WEB site
to see how Bar-codes can help you be more productive