[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Adding a USER DSN on ODBC32  for Access 97 on the fly

Posted on 1998-05-11
2
Medium Priority
?
199 Views
Last Modified: 2013-11-13
Adding a USER DSN on ODBC32  for Access 97 on the fly:


Went to Microsoft  looked up VB5 code for Adding a DSN and found code, but there example is for SQL and this did not work.    Now what?
0
Comment
Question by:Chizl
2 Comments
 
LVL 5

Accepted Solution

by:
bin_huwairib earned 1600 total points
ID: 1445905
Chizl,

Try the following:

DBEngine.RegisterDatabase "MyDSN", "Microsoft Access Driver (*.mdb)", True, "DBQ=c:\test.mdb;"


Best regards
Bin Huwairib
0
 
LVL 4

Author Comment

by:Chizl
ID: 1445906
We tried that, but there is more too it for what we are doing..   We found a sollution though.    We are using WISE installation software.   We just copied the registry for HKEY_CURRENT_USER\SOFTWARE\ODBC\ with the Access 97 and HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\  with the Access 97 portion into our Setup and it works perfectly..  So I'm going to go ahead and give you the points for just a quick response.    :)  

Your Welcome..
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

829 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