+ Reply to Thread
Results 1 to 12 of 12

Using ADO/DAO in Excel 2013 to query an .accdb database hard crashes Excel

  1. #1
    Valued Forum Contributor
    Join Date
    02-06-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    373

    Using ADO/DAO in Excel 2013 to query an .accdb database hard crashes Excel

    Hello All,

    Wondering if I can get some assistance, both methods of querying my access (.accdb) databases that were working in Office 2010 are now causing Excel to hard lock and crash when opening a connection.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Using ADO/DAO in Excel 2013 to query an .accdb database hard crashes Excel

    Maybe try ADO. I have not tested this but maybe something like:
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    02-06-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    373

    Re: Using ADO/DAO in Excel 2013 to query an .accdb database hard crashes Excel

    Both ADO and DAO result in a hard crash

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Using ADO/DAO in Excel 2013 to query an .accdb database hard crashes Excel

    Sounds like you may need to reinstall MDAC drivers.

  5. #5
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Using ADO/DAO in Excel 2013 to query an .accdb database hard crashes Excel

    Which version of ADO and DAO reference do you use? Is Office 32 or 64 bit?
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  6. #6
    Valued Forum Contributor
    Join Date
    02-06-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    373

    Re: Using ADO/DAO in Excel 2013 to query an .accdb database hard crashes Excel

    Microsoft ActiveX Data Objects 6.1 Library
    Microsoft Access 15.0 Object Library

    32 bit

  7. #7
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Using ADO/DAO in Excel 2013 to query an .accdb database hard crashes Excel

    Access 15 is not DAO reference. You mean Access Database Engine?

    Is better to Set variables to New object, not declare As New

  8. #8
    Valued Forum Contributor
    Join Date
    02-06-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    373

    Re: Using ADO/DAO in Excel 2013 to query an .accdb database hard crashes Excel

    I apologize, it's "Microsoft Office 15.0 Access Database Engine Object Library"

    The crash happens with early or late binding.

    Quote Originally Posted by Izandol View Post
    Access 15 is not DAO reference. You mean Access Database Engine?

    Is better to Set variables to New object, not declare As New

  9. #9
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Using ADO/DAO in Excel 2013 to query an .accdb database hard crashes Excel

    Database will open manually with no error?

  10. #10
    Valued Forum Contributor
    Join Date
    02-06-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    373

    Re: Using ADO/DAO in Excel 2013 to query an .accdb database hard crashes Excel

    Correct, and I can query the .accdb using OLEDB with a C# app.

    Quote Originally Posted by Izandol View Post
    Database will open manually with no error?

  11. #11
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Using ADO/DAO in Excel 2013 to query an .accdb database hard crashes Excel

    Does code crash with all databases or only this one? If it is all I think you must reinstall MDAC to begin as Kenneth says. This code has worked before with Excel 2013?

  12. #12
    Valued Forum Contributor
    Join Date
    02-06-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    373

    Re: Using ADO/DAO in Excel 2013 to query an .accdb database hard crashes Excel

    All- I've resolved this crash by removing all references from the Excel file in the project editor, saving the file, then re-adding the references.

+ 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. Excel 2013 Crashes When Clearing Filters
    By Mvaldesi in forum Excel General
    Replies: 7
    Last Post: 11-29-2018, 07:40 PM
  2. [SOLVED] When running a Macro, it crashes my Excel 2013... Why?
    By fleyd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-24-2015, 11:50 AM
  3. Excel 2013 Crashes After Successful Macro Run
    By gsz2952 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-27-2015, 09:38 AM
  4. Excel 2013 crashes
    By La82 in forum Excel General
    Replies: 2
    Last Post: 11-04-2014, 05:17 AM
  5. Excel 2013 crashes
    By La82 in forum Excel General
    Replies: 0
    Last Post: 10-30-2014, 09:27 AM
  6. Replies: 9
    Last Post: 05-22-2012, 08:59 AM
  7. Replies: 0
    Last Post: 03-16-2010, 05:30 PM

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