+ Reply to Thread
Results 1 to 4 of 4

System Error in ADODB connection code

  1. #1
    Registered User
    Join Date
    04-21-2009
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    42

    System Error in ADODB connection code

    Hi all,

    I'm currently trying to add some functionality into a form I have developed where we can append the results to an existing table in Access 2007. I am testing some code at the moment but getting an error that I can't seem to get round. The Error appears in a 'Microsoft Visual Basic' window and the message states: System Error &H80004005 (-2147467259). The error appears when I attempt to run the following code:

    Please Login or Register  to view this content.
    This is something I have stolen from the internet, I am very new to VBA so basic editing of existing code is about my limit. I have checked Microsoft ActiveX Data Objects 2.8 Library in Tools>References.

    I've searched for a similar problem on the forum but couldn't see one, apologies if I've missed something glaringly obvious.

    Many thanks in advance

    Jon
    Last edited by romperstomper; 11-08-2011 at 12:29 PM.

  2. #2
    Registered User
    Join Date
    04-21-2009
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: System Error in ADODB connection code

    Hi all,

    Solved it, not sure exactly what's done it, however, having re-edited the code a few times, changing the access extension to .mdb and also checking:

    Microsoft DAO 3.6 Object Library
    Microsoft ActiveX Data Objects 2.0 Library

    in Tools>References, this seems to have done the job. Now all I need to do is figure out how to add a reference to a database password in there, but that's a potential future issue for another time.

    Thanks to everyone who had a look to see if they could help.

    Jon

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: System Error in ADODB connection code

    FYI, The Jet provider doesn't understand accdb as it's a newer format. You'd need to use the Microsoft.ACE.OLEDB.12.0 provider instead.
    Remember what the dormouse said
    Feed your head

  4. #4
    Registered User
    Join Date
    04-21-2009
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: System Error in ADODB connection code

    Good to know - thanks!

    Jon

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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