easiest way to find mdac version if ADO is installed

C

callramesh

if the machine has ADO then this should work ..

Function GetAdoVersion
'Returns an empty string if ADO is not installed
Dim o
On Error Resume Next
Set o = CreateObject("ADODB.Connection")

If Err.Number = 0 then
GetAdoVersion = o.Version
Else
GetAdoVersion = " Sorry !! ADO is not installed."
End If

End Function

msgbox "MDAC version is : " & GetAdoVersion
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

MDAC Problem 2
MDAC version issue? 3
Using ADO and Late Binding 4
ADO Connections 1
Foolproof way to add ADO reference 22
DAO IS DED 16
ADO query eating CPU power 1
ADO overwriting locked record problem 2

Top