Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do you change ODBC Microsoft Access Driver

Posted on 2014-04-04
14
Medium Priority
?
617 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 15

Assisted Solution

by:jerseysam
jerseysam earned 600 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 600 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 600 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 learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
Gain an elementary understanding of Blockchain technology.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

916 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