Think about running a command from the command line. If the path contains spaces, you need to use a quoted path name.
When scripting in windows, I
believe you'll need to replace
Code:
LUName = "computername\folder with spaces\PB_Database_V1.1.mdb"
(which is the equivalent of
computername\folder with spaces\PB_Database_V1.1.mdb)
with
Code:
LUName = """" & "computername\folder with spaces\PB_Database_V1.1.mdb" & """"
OR
Code:
LUName = """computername\folder with spaces\PB_Database_V1.1.mdb"""
either of which are the construction of a string containing
"computername\folder with spaces\PB_Database_V1.1.mdb"
Four quotes in a row represents a single quote mark. Two quotes in a row,
within a quoted string, are escaped as one quote mark, within the quoted string.
Your string would then contain leading and trailing quote marks,
within the string.