Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Aug 2005
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Not a valid path (Access 2000)

    In my command to open the database in another computer called Valja I get a run time error runtime error 3404 ValjaBEbe.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 = ValjaBEbe.mdb
    It is surprising because my Shell command with the same path works without ptoblems :
    Shell """C:Program FilesWinZipWZzip.exe"" ValiaBEArchiveBEBE" & Format(Date, "yyyymmdd") & " C:BEBE.mdb"
    Could you help me find the reason ?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Not a valid path (Access 2000)

    In your shell command, you use Valia (with an i) and in the constant, you use Valja (with a j)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •