Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

How can you get the ADO version installed on worksation?

Discussion in 'Information Technology' started by ZRexRider, Jul 28, 2006.

  1. ZRexRider

    ZRexRider
    Expand Collapse
    Guest

    Does anyone know if there is an object property or other "property"
    that I can access through VBA that will tell me which version of ADO
    that my application is using?

    My application is spread around a generally well maintained corporate
    network but I've found some problems occurring when my application uses
    older version of ADO. I'd like my application to be a little more
    proactive and warn me about this condition before "odd behaviour" is
    reported by a non-technical user.

    Thanks
     
  2. Loading...


  3. Jamie Collins

    Jamie Collins
    Expand Collapse
    Guest

    ZRexRider wrote:
    > Does anyone know if there is an object property or other "property"
    > that I can access through VBA that will tell me which version of ADO
    > that my application is using?


    The most recent version installed on my machine is ADO 2.8, a fact I
    can easily confirm in VBA via the registry e.g.

    Dim con
    Set con = CreateObject("ADODB.Connection.2.8")

    Jamie.

    --
     
  4. ZRexRider

    ZRexRider
    Expand Collapse
    Guest

    Thanks Jamie - that's the nudge I needed:

    This works too:

    debug.print CurrentProject.Connection.Version

    But my guess would be your way is safest

    Thanks



    Jamie Collins wrote:
    > ZRexRider wrote:
    > > Does anyone know if there is an object property or other "property"
    > > that I can access through VBA that will tell me which version of ADO
    > > that my application is using?

    >
    > The most recent version installed on my machine is ADO 2.8, a fact I
    > can easily confirm in VBA via the registry e.g.
    >
    > Dim con
    > Set con = CreateObject("ADODB.Connection.2.8")
    >
    > Jamie.
    >
    >
     
  5. Jamie Collins

    Jamie Collins
    Expand Collapse
    Guest

    ZRexRider wrote:
    > debug.print CurrentProject.Connection.Version
    >
    > But my guess would be your way is safest


    No, I think I prefer yours!

    Jamie.

    --
     

Share This Page