Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not a valid path

Status
Not open for further replies.

samotek

Technical User
Joined
May 9, 2005
Messages
197
Location
BG
In my command to open the database in another computer called Valja I get a run time error runtime error 3404 \\Valja\BE\be.mdb is not a valid path
It happens when when I try to open it by the command :
Set db = DBEngine.Workspaces(0).OpenDatabase(VaPath, dbDriverComplete, False, "; PWD=" & strPassword)
I get the path through the following constant :
Public Const VaPath As String = \\Valja\BE\be.mdb
It is surprising because my Shell command with the same path works without ptoblems :
Shell """C:\Program Files\WinZip\WZzip.exe"" \\Valia\BE\ArchiveBE\BE" & Format(Date, "yyyymmdd") & " C:\BE\BE.mdb"
Could you help me find the reason ?
 
Public Const VaPath As String = [!]"[/!]\\Valja\BE\be.mdb[!]"[/!]

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
or[tt]
Public VaPath As String
VaPath = "\\Valja\BE\be.mdb"
[/tt]

________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
\\Valia\BE\ArchiveBE\BE" & Format(Date, "yyyymmdd") & " C:\BE\BE.mdb"

"\\Valja\BE\be.mdb"

Don't seem equal to me. Your shell command uses winzip or am I reading wrong??
 
Jerry, did you mean the spelling difference?

"[COLOR=red yellow] [/color]\\Valia\BE\ArchiveBE\BE" & Format(Date, "yyyymmdd") & "[COLOR=red yellow] [/color]C:\BE\BE.mdb"

"\\Val[COLOR=red white]j[/color]a\BE\be.mdb"


________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
Zameer,

Spelling is one thing. The other is whether samotek is trying to open a zipped db!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top