logo
vbRad Home
Source Code
Book Reviews
Forum
Links
About Us
Contribute

Compare Databases with SQL Effects Clarity
 
 Retrieve ADO or MDAC version

Posted on
10/24/2001
Author:
Robert Gelb
Email:
Not Shown
Applies To OS:
NT, 9x, 2000
Product:
5, 6



Here is a little routine to retrieve ADO (aka MDAC) version or to see if it installed on the system. This function can be called from anywhere. It returns an empty string if ADO is not installed. Scroll down for code.

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




Add Your Comment  

Name: Email Address: all fields optional
Notify me via email when someone responds to this message (valid email required).

Enter the word:
 



Comments
#1. By Ashok. Posted on 3/27/2006 6:53:09 AM
It is a really very helpful function.

#2. By Vikas Bansal. Posted on 5/20/2006 4:11:56 AM
excellent