+ Reply to Thread
Results 1 to 3 of 3

MS Access ADODB Connection String - Invalid File Path, Does not Exist

  1. #1
    Forum Contributor
    Join Date
    08-22-2017
    Location
    USA
    MS-Off Ver
    2016 WINDOWS and MAC
    Posts
    294

    MS Access ADODB Connection String - Invalid File Path, Does not Exist

    Nothing like a waste of time.

    I moved some files around on a ADODB MS Access project i am working on.

    Now the connection string is not being recognized by my client macro. Heres the catch.. one macro WITH THE SAME EXACT CONNECTION STRING connects fine. The next macro I get runtime error path does not exist. I renamed the database .accdb file and Excel still wants to be a PIMA.

    There are no ambiguous files on my desktop. Theres only one database file on my desktop and its in the right folder. This is a matter of ADODB Library not doing its just correctly. I think....
    There is a catch, that I am on a Mac and using Parallels, but doubt that is of any issue here.


    Module 1 (works good) connection string:
    Please Login or Register  to view this content.
    Module 2 (runtime error) connection string:
    Please Login or Register  to view this content.
    Wow they're exactly the same.

    However, the runtime error i get references this database....
    Please Login or Register  to view this content.

    Capture.PNG


    Company is the old database name I had. It is no longer there. Its renamed.


    I had this issue before. I fixed it. Can't remember how. But its a real PITA and frankly Its a waste of everyone's time. Any help is appreciated.

    Thanks

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: MS Access ADODB Connection String - Invalid File Path, Does not Exist

    Can you post the actual code that's causing the error?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    08-22-2017
    Location
    USA
    MS-Off Ver
    2016 WINDOWS and MAC
    Posts
    294

    Re: MS Access ADODB Connection String - Invalid File Path, Does not Exist

    Norie,

    Perhaps but would be tedious probably.

    But I assure you nothing is being missed. The filename is correct. The connection strings are correct. And the error is still present. Its almost like the client is not re-freshing its connection (old database name). I even rebooted the virtual machine.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ADODB connection to Access
    By aprildu in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 06-14-2017, 05:41 PM
  2. ADODB Connection to Access DB stored on Office 365
    By SyracuseWolvrine in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2017, 04:23 PM
  3. ADODB connection - Changing connection path via fileDialog
    By cajand in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2015, 08:06 AM
  4. Replies: 0
    Last Post: 05-08-2014, 11:42 AM
  5. Cannot Use ADODB.Connection to connect to an access database
    By Cardinalbags in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2012, 07:09 PM
  6. ADODB Connection String
    By iancallaghan87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-30-2008, 11:54 AM
  7. [SOLVED] ADODB Connection String
    By Nigel C in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2005, 03:05 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1