Results 1 to 3 of 3
  1. #1
    sween1978 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    2

    Run time 3343 after converting access database to 2010


    Hi

    Hope someone can help. I recently converted an access database to 2010 from 2003.

    When trying to access the database in excel i am now getting run time error 3343 unrecognized database format.

    I tried changing the database to an accdb in the code but with no success. The bold line is the one highlighted in the debug.

    Would it be easier to just run the database in the old mdb format? will this always work with the newer access?

    Thanks


    Dim daoApp As DAO.DBEngine
    Dim dbsales As DAO.Database
    Dim rssales As DAO.Recordset
    Dim appXL As Excel.Application
    Dim i As Integer
    Dim xlfile As Workbook
    Dim wks As Worksheet
    Dim icount As Integer
    Dim qrystr As String
    Dim qrystr1 As String
    Dim qrystr2 As String
    Dim qrystr3 As String
    ActiveSheet.Range("B8").Select
    'Establish link to DAO
    Set daoApp = New DAO.DBEngine
    'Open Access database file
    Set dbsales = daoApp.OpenDatabase _
    ("datbase.accdb")

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    What version of Excel? An older version wouldn't be aware of the newer format.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    sween1978 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    2
    The original one was excel 97-2003. I converted the excel file to 2010 format but still no success

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

Similar Threads

  1. Replies: 2
    Last Post: 02-11-2014, 09:41 AM
  2. Replies: 3
    Last Post: 08-12-2013, 10:12 AM
  3. Replies: 7
    Last Post: 05-13-2013, 11:37 AM
  4. Converting matrix to column in access 2010
    By peteramullen in forum Access
    Replies: 4
    Last Post: 08-13-2012, 05:58 PM
  5. Replies: 1
    Last Post: 02-28-2012, 09:16 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