?
Solved

Create user DSN

Posted on 1998-07-19
3
Medium Priority
?
190 Views
Last Modified: 2011-04-14
I want to create a user dsn in odbc. This dsn should connect access 7.0 database.  How to do it in VB5, what's the connection code?  I tried it before, although it can created dsn's name, but cannot connect the database and invaild directory. How to solve it?
0
Comment
Question by:Galvani
[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
3 Comments
 
LVL 2

Expert Comment

by:chris_a
ID: 1466213
Look at usinf file dsn's, then it simply a metter of writing to a file
0
 
LVL 1

Accepted Solution

by:
shagnasty earned 30 total points
ID: 1466214
Use a FileDSN and include it with your application.
Don't forget to change your ODBC connection string to FILEDSN= (instead of DSN=)

0
 
LVL 2

Expert Comment

by:chris_a
ID: 1466215
Who corrupted my spelling, it wasn't that bad I'm sure.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…
Suggested Courses

765 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