We help IT Professionals succeed at work.

Using odbc32.dll in VB6 on Windows 7

Adam_930 asked
Last Modified: 2013-12-05
Hello Experts,
I have written an application in VB6 that was running fine on XP.
We are now migrating to Windows 7.
My declare function statements require using odbc32.dll. What I'm wondering is could my application be looking at the odbc32 located in the Windows\System32 subdirectory instead of the WindowsysWOW64 subdirectory? I have tried chaning the path to put the WOW64 path before the System32 subdirectory. But have not had any success. How can I determine if it is looking at the proper odbc32 or not?
Watch Question

Brook BraswellApplication Development Manager

To my knowledge, the application uses the ODBC that the operating system is set up for...
In other words, I do not believe you can tell VB6 to look at the 32 bit versus the 64 bit ODBC.  You need to simply make sure that the 64 bit is pointing to the correct database when running on the Windows 7 computer.


When I go to the Administrator Tools ODBC Data Source (AboutTab), it shows it is pointing to the Windows\system32 directory. But I don't know how to change where it points to, or if this is the correct location you are suggesting.  If it is done within the VB development I would appreciate some assistance on how to change it as well.  thanks,
Top Expert 2012
This one is on us!
(Get your first solution completely free - no credit card required)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.