Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 1998-05-11
2
Medium Priority
?
196 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
[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
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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

636 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