Reputation: 427
I am writing a c#-program that should check the programversion of a given link:
var versionInfo = FileVersionInfo.GetVersionInfo(filePath);
string version = versionInfo.ProductVersion; // Will typically return "1.0.0"
MessageBox.Show("File version:" + version);
If I set the filePath to for example C:\WINDOWS\system32\notepad.exe the version of Notepad is given. Setting the path to test.accdb (Microsoft Access 2007) the version string is empty.
How or is it generally possible to set up a version in Access?
Upvotes: 0
Views: 481
Reputation: 4312
You can go to File | Options | Current Database | Application Title and set a value. I prefer a different approach: Create a table to contain Ver#, Date Released, Etc. That way you can make use of other methods to insure all users have the correct version. For example, lets say you place the current version on the server, then place copies on workstations. When the user opens the database, have the startup form check the local version against the server version and halt if outdated.
Upvotes: 2