Solved

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

Posted on 1998-05-11
2
161 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 400 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Wordpress New Install 3 76
How does CurrentUser work? 10 31
Active Directory Audit 18 97
Windows 10 new laptop initial install restart 7 23
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you don't know how to downgrade, my instructions below should be helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

914 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

14 Experts available now in Live!

Get 1:1 Help Now