Solved

ODBC Connection

Posted on 2014-09-29
4
524 Views
Last Modified: 2014-09-29
Dim inNewConnetion As OdbcConnection = New OdbcConnection(String.Format("Driver={{Microsoft Access Driver (*.mdb, *.accdb)}}; Dbq={0}; Uid=admin; Pwd=;", inAccessDBName))

inNewConnection.Open()

When I try to open the connection I get the following error.  How do I fix this?

Unable to load odbcji32.dll

OS: Windows 8.1
Apps installed: MS Access 2013
0
Comment
Question by:Ray Turner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 40349744
At a guess (the 32 in the error message) you have compiled your app as any cpu (or explicitly 64 bit cpu) which means it can't call a 32 bit dll.
The solution is to change the properties of your app so it compiles only as 32 bit.
0
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points
ID: 40349751
properties, build tab, platform target
0
 

Author Comment

by:Ray Turner
ID: 40350034
After making the suggested change I get the following error:

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

What's needed to fix this?
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 40350148
That is a totally different question (sounds like the ODBC connection you want to use is not configured) , you ought to close this and ask a new question for that.
0

Featured Post

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

729 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