A little help using a DSN

kalypso

New member
Joined
Oct 19, 2004
Messages
4
Programming Experience
Beginner
I am very new to using ODBC. Actually I'm pretty new to VB in general. I have done many of the basics but have never used data access.

I have created a DSN named MAC to connect to my database here at work. It connects fine. I do now know how to use that connection in a VB project. I have added the code:

Dim conn As New OdbcConnection("DSN=MAC")

But underneath OdbcConnection it has an underline and the error says its not defined. I have no idea how to go about defining it. I appologize for asking such a stupid question but every place I look assume you know how to do that and says nothing about it. I will appreciate any help I can get.

Thanks in advance
 
Back
Top