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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dtermine access DB version

Status
Not open for further replies.

sramey00

Programmer
Jun 9, 2004
149
US
i would like to determine the version of access the database was created with. i tried using

getobject("c:\...").version

but that returns the current installed version of access.
any help?

Mr. Steve

 
To get the Jet version:
CurrentDB.Version
You may also consider this:
CurrentDB.Properties("AccessVersion")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Function GetVer() 'Access version
Dim ResStr, Ver As Object
ResStr = CurrentDb.TableDefs("YrAttTable").Connect
ResStr = Mid(ResStr, 11, Len(ResStr))
Set Ver = GetObject(ResStr)
GetVer= Ver.Version
End Function


Herman
Say no to macros
 
thanks...

i have a few hundred access db which are password protected.. im trying to write this script which converts them to 2003 and unlocks them. any know how on this subject? i am having problems unlocking the file.

im using
DoCmd.RunCommand acCmdSetDatabasePassword

to pop up the password box...

Mr. Steve

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top