Code:
'uses ODBC DRIVER & DATA SOURCE NAME FUNCTIONS library
'this will list all DSNs and ODBC drivers installed
'on the current machine
Dim objDSN As Dsn
Dim lngCounter As Long
Set objDSN = New Dsn
Dim strDSNArray() As String
Dim strDriverArray() As String
'==============================================================
'GET DSN LISTING
'==============================================================
objDSN.GetDataSourceList strDSNArray
Debug.Print "-------------------DSNs--------------------------"
For lngCounter = LBound(strDSNArray()) To UBound(strDSNArray())
Debug.Print strDSNArray(lngCounter)
Next lngCounter
'==============================================================
'GET ODBC DRIVER LISTING
'==============================================================
objDSN.GetOdbcDriverList strDriverArray()
Debug.Print "---------------ODBC Drivers----------------------"
For lngCounter = LBound(strDriverArray()) To UBound(strDriverArray())
Debug.Print strDriverArray(lngCounter)
Next lngCounter
'==============================================================
'cleanup
Set objDSN = Nothing
HTH
Tom