Solved

How do you change ODBC Microsoft Access Driver

Posted on 2014-04-04
14
573 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
 
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Outlook Free & Paid Tools
This article will shed light on the latest trends when it comes to your resume building needs. For far too long, the traditional CV format has monopolized the recruitment market.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now