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
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