Solved

How do you change ODBC Microsoft Access Driver

Posted on 2014-04-04
14
585 Views
Last Modified: 2014-04-14
The ODBC Microsoft Access Driver is pointing to abc.mdb.

I need to change it to point to abc.accdb.

How do you do this ?

Access 2007 on W7 PC.
0
Comment
Question by:thayduck
  • 8
  • 6
14 Comments
 
LVL 15

Expert Comment

by:jerseysam
ID: 39977994
Run the file odbcad32.exe from either of these locations (depends if you are 32 or 64 bit)

C:\Windows\SysWOW64

C:\Windows\System32

Then just make the changes in the settings
0
 

Author Comment

by:thayduck
ID: 39978020
I have been there before, but when I click User DSN tab, then click MS Access Database, then click Configure, then click Select, I do not see anything pointing to abc.mdb.  So I am not sure why I get message ODBC Microsoft Access Driver is pointing to abc.mdb.

I guess I want to see it so I know I am in right place to make change.
0
 
LVL 15

Expert Comment

by:jerseysam
ID: 39978025
Are you logged on as correct user?

What do you have in system, DSN?
0
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 
LVL 15

Assisted Solution

by:jerseysam
jerseysam earned 200 total points
ID: 39978028
0
 

Author Comment

by:thayduck
ID: 39978033
Under System DSN tab I scroll thru many drivers
0
 
LVL 15

Assisted Solution

by:jerseysam
jerseysam earned 200 total points
ID: 39978038
It may be that the Access 2010 file type is not on that PC?

You may want to download:

http://www.microsoft.com/en-us/download/details.aspx?id=13255
0
 

Author Comment

by:thayduck
ID: 39978994
Sorry, had a IT emergency.

The issue is within XL document and a pivot table.
XLdoc.png  shows XL document  with connection string showing .accdb
XLdoc.png  shows what happens when I try to refresh XL document.

Not sure why I get this ODBC error since I changed connection string to point to .accdb not .mdb

Looks like pivot table or XL still points to .mdb somewhere but not sure where.
XLDoc.PNG
XLDoc1.PNG
0
 
LVL 15

Assisted Solution

by:jerseysam
jerseysam earned 200 total points
ID: 39979065
This article shows you where odbc links are in excel pivot tables:

http://www.athenasoftware.net/help/Changing_ODBC_And_Pivot_Table_Configuration.pdf
0
 

Author Comment

by:thayduck
ID: 39979551
Tried but still have same issue. It keeps wanting abc.mdb (see .png).

I have changed everything (that I know of) to point to abc.accdb but still it wants abc.mdb when I Refresh pivot table.

Very frustrating.
0
 

Author Comment

by:thayduck
ID: 39985907
Looks like the issue is with the .xlxs with the pivot tables.
Seems like the old path is stored in the .xlxs somewhere, so even though connection points to .accdb the old path .mdb is still being used. Something to do with the PivotCache which no matter what I try I cannot change. Tried below in VBA code but still does not work (found on internet) . Still looks for old .mdb path.

Any ideas on how I can change this Pivot Cache so it points to .accdb ?

 Const sOLDPATH As String = "C:\Symposium Phone Reports\Symposium Phone Reports.mdb"
    Const sNEWPATH As String = "C:\Symposium Phone Reports\Symposium Phone Reports.accdb"

     xlApp.DisplayAlerts = False
     Set wb = xlApp.Workbooks.Open("C:\Symposium Phone Reports\Call Distribution -   Customer.xlsx")
     Set ws = wb.Worksheets("Data")
     
    With ws.PivotTables(1).PivotCache
    .Connection = Replace(.Connection, sOLDPATH, sNEWPATH)
    ws.Activate
    Set pt = ws.PivotTables(1)
    pt.RefreshTable                            **Fails here. Trys to refresh .mdb not .accdb
    Set qt = ws.QueryTables(1)
    qt.Refresh                                    **Fails here. Trys to refresh .mdb not .accdb
    End With
   
    Set ws = wb.Worksheets(1)
    ws.Activate
    wb.Save
    wb.Close
0
 

Accepted Solution

by:
thayduck earned 0 total points
ID: 39988779
I corrected this problem by opening each .xlsx (containing pivot tables) and made sure connections were pointing to .accdb and then I open each pivot table query and refreshed them. Now  .xlsx are pointing to .accdb and everything is working correctly.

Just making sure connections were pointing to .accdb was not enough, had to refesh pivot table queries to.
0
 

Author Comment

by:thayduck
ID: 39988818
Thanks for help
0
 
LVL 15

Expert Comment

by:jerseysam
ID: 39988829
Ahh ok, good man.
0
 

Author Closing Comment

by:thayduck
ID: 39998543
Thanks for help jerseysam...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Outlook Free & Paid Tools
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question