| Retrieve ADO or MDAC version |
Applies To |
|
| OS: VB: |
NT, 9x, 2000 5, 6 |
|
| Add the following function to Module, Class or Form |
|---|
Function GetAdoVersion() As String
'Returns an empty string is ADO is not installed
Dim o As Object
On Error Resume Next
Set o = CreateObject("ADODB.Connection")
If Err.Number = 0 then
GetAdoVersion = o.Version
Else
'ADO is not installed
End If
End Function