Results 1 to 3 of 3
  1. #1
    andrea76 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    2

    Access 2016 - Method AccessConnection failure

    Hy everybody,

    I’m having problems with making an access file work in a PC with the following features: access 2016 and windows 10.

    The problem is within the method ‘AccessConnection’ of the object ‘Application.CurrentProject’.

    When I try to get connection with Db using the following:

    Code:
     Dim CN as ADODB.Connection
               Set CN = New ADODB.Connection
               Set CN = Application.CurrentProject.AccessConnection
    ,

    it results in the following error string:

    “runtime error ‘-2147467259 (80004005)’:
    Method ‘AccessConnection’ of object ‘_CurrentProject’ failed”.



    Moreover, the same .accdb file in an other machine with windows 10 and access 2016 works correctly.

    May anyone help me?
    Andrea

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Why do you need it?
    None of this is needed to get data from an access db .

  3. #3
    andrea76 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    2
    I use ADO object in the file to interact with db trhoug VBA (querying data, execute command, etc...)

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

Similar Threads

  1. Replies: 5
    Last Post: 12-25-2019, 10:28 PM
  2. Is Document Close Method different in 2016?
    By Abacus1234 in forum Modules
    Replies: 0
    Last Post: 07-28-2016, 09:28 AM
  3. How to fix Failure creating file Access 2010?
    By Deprecate in forum Import/Export Data
    Replies: 3
    Last Post: 01-27-2016, 08:28 AM
  4. Replies: 5
    Last Post: 10-27-2015, 06:00 AM
  5. Type Conversion Failure of date field in Access
    By accessmatt in forum Queries
    Replies: 4
    Last Post: 05-01-2015, 03:39 PM

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