4

I am looking for a way to get the version of MSAccess that was used to create a MDB file.

Any (tools, .bat, c#) suggestions appreciated.

Thanks

1

1 Answer 1

4

From VBA code, you could inspect the FileFormat property to determine the format version of your MDB file. It will return a value from the Access.AcFileFormat class.

I used this in the Immediate window with an MDB created as Access 2002-2003 format.

? CurrentProject.FileFormat = acFileFormatAccess2002 
True

Notice however that doesn't say anything about the version of Access which was used to create the MDB. I created it using Access 2007:

? Access.Version
12.0

As far as I'm aware, the version of Access used to create an MDB does not get stored anywhere within the MDB file. And you could create an MDB by another method, such as with VBScript, which doesn't require an Access application instance to be running or even require Access to be installed.

Perhaps if you give us more information about why you want to know which Access version was used to create your MDB, someone can offer a workaround.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.