?
Solved

Create user DSN

Posted on 1998-07-19
3
Medium Priority
?
194 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
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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
Course of the Month15 days, 14 hours left to enroll

850 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