I am trying to write a program that will search our users local drives to find all access databases that are still Ms Access 97 versions. They have access databases that could be Access 97 or Access 2002. I want to upgrade the Access 97 databases to Access 2002. However, I don't want to open each database to determine what version it is. I tried to right some test code below, however, this appears to works only on .exe files. Any help in this matter, would be greatly appreciated.
Sub GetFileVersion()
' Get the file version for .mdb file.
Dim myFileVersionInfo As FileVersionInfo = FileVersionInfo.GetVersionInfo("c:\ChargeLog.mdb")
' Print the file name and version number.
Me.txtSearchFiles.Text = "File: " & myFileVersionInfo.FileDescription & ControlChars.Cr & _
"Version number: " & myFileVersionInf
End Sub
Sub GetFileVersion()
' Get the file version for .mdb file.
Dim myFileVersionInfo As FileVersionInfo = FileVersionInfo.GetVersionInfo("c:\ChargeLog.mdb")
' Print the file name and version number.
Me.txtSearchFiles.Text = "File: " & myFileVersionInfo.FileDescription & ControlChars.Cr & _
"Version number: " & myFileVersionInf
End Sub