Const HKEY_LOCAL_MACHINE = &H80000002
Function GetODBCDrivers() As Collection Dim res As Collection Dim values As Variant Set GetODBCDrivers = New Collection For Each values In EnumRegistryValues(HKEY_LOCAL_MACHINE, _ "Software\ODBC\ODBCINST.INI\ODBC Drivers") If StrComp(values(1), "Installed", 1) = 0 Then GetODBCDrivers.Add values(0), values(0) End If Next End Function |