Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA - version of access

Status
Not open for further replies.

wtina

IS-IT--Management
Jul 1, 2003
9
SI
hi,

i really urgently need to find out a way to see what version of access database uses.
i have a list of .mdb-s which are either in access 97, 2000 or xp. in have a code that opens every .mdb and checks tabledefs, but before that i need to identify which version of access that .mdb is in.
can so help me, please!

Thanks a lot!
 
In VBA,
Code:
DBEngine(0)(0).Containers!Databases.Documents(1).Properties(8)
provides a quick way of determining which version of Access is running. Beware - this returns the version in a slightly strange way though, e.g. 08.50 is Access 2000, so you might have to experiment with the results to work out which version numbers equate to which releases of Access.

Hope this helps!

[pc2]
 
Thank you both a lot, hope it helps (-:

Regards!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top