Results 1 to 2 of 2
  1. #1
    Chandrasekharan is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    1

    Error while debugging project (Oledb connection error when attempting to connect to a database)

    When my Visual Studio project attempts to connect to an MSAccess database using the following connection string:

    Dim constring As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|dBase|\datafile; Persist Security Info=False;"

    The following error is reported:



    An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll


    Additional information: Not a valid file name.

    Can anyone help me solve my problem?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Either :
    change the provider to a different one.
    or
    stop using code to connect and use ODBC and connect your tables directly.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 01-21-2015, 06:03 AM
  2. Replies: 4
    Last Post: 07-17-2014, 03:42 PM
  3. Replies: 0
    Last Post: 07-03-2014, 02:49 PM
  4. Replies: 5
    Last Post: 07-15-2011, 12:11 PM
  5. Database Connection Error
    By pgabell in forum Access
    Replies: 1
    Last Post: 01-17-2009, 07:24 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums