VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



ODBC DSN Connection

by lahiru rupasinghe (1 Submission)
Category: Databases/Data Access/DAO/ADO
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 26th June 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

ODBC DSN Connection

API Declarations


'Declare Public Declaration

public Cn as ADODB.Connection
public Rc as ADODB.Recordset
public Sql as String

Rate ODBC DSN Connection




    set Cn = new ADODB.Connection
    set Rc = new ADODB.Recordset

    cn.open "MYODBC","UserName","Password"
    
    while not Rc.Eof
       list1.AddItem rc!TableName
       rc.MoveNext
    wend
end sub




Download this snippet    Add to My Saved Code

ODBC DSN Connection Comments

No comments have been posted about ODBC DSN Connection. Why not be the first to post a comment about ODBC DSN Connection.

Post your comment

Subject:
Message:
0/1000 characters