Results 1 to 5 of 5
  1. #1
    EddieN1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2011
    Posts
    313

    How to use VBA to Get Full Access Version/Build Numbers


    When I go to the the File, Account, About Access, I find that the Version of Access I'm running is "Microsoft® Access® for Microsoft 365 MSO (Version 2312 Build 16.0.17126.20132) 64-bit" In VBA, I can find some of these values using the command "CurrentProject.Properties.Application.". For example, if I follow this with "Version", I get the 16.0 string. If I use Build, I get the 17126 node. What can I do to get the underlined values... Version 2312 and the last node of the Build ...20132. Thanks, Eddie

  2. #2
    Edgar is offline Competent Performer
    Windows 8 Access 2016
    Join Date
    Dec 2022
    Posts
    274
    This one liner returns the full string:
    Code:
    CreateObject("Scripting.FileSystemObject").GetFileVersion(SysCmd(acSysCmdAccessDir) & "MSACCESS.EXE")
    Or you can do it in a more typical way:
    Code:
    Sub ShowAccessVersion()
        Dim fso As Object
        Set fso = CreateObject("Scripting.FileSystemObject")
        
        Dim getAccessPath As String
        getAccessPath = SysCmd(acSysCmdAccessDir)
        
        Dim getVersion As String
        getVersion = fso.getfileversion(getAccessPath & "MSACCESS.EXE")
        
        MsgBox getVersion
    End Sub
    Please click on the ⭐ below if this post helped you.


  3. #3
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    The above code will give the full build number e.g. 16.0.17304.20000.
    Note that this is the value to the right of the About Access button

    Click image for larger version. 

Name:	Capture.PNG 
Views:	28 
Size:	5.3 KB 
ID:	51328
    The value on the About Access screen is often incorrect and should be ignored


    Surprisingly, the YYMM version number cannot be obtained using VBA.

    My free Access/Office/Windows Version Checker add-in obtains all the above information and more:

    Click image for larger version. 

Name:	VersionChecker.PNG 
Views:	29 
Size:	24.5 KB 
ID:	51329

    All of the information is obtained using code - except the YYMM version number which I obtain by scraping an MS version info webpage.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  4. #4
    EddieN1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2011
    Posts
    313
    Just what I need. Thanks, Eddie

  5. #5
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    You're welcome.
    I asked the Access team about a year ago to provide code to allow the YYMM version number to be extracted - I got a positive response at the time but so far no action

    This is a quote from my web article https://www.isladogs.co.uk/sys-cmd-actions/

    I have also asked that a new SysCmd value (e.g. 911) be created that will return the full Access version, build and bitness information.
    For example: Access 365 32-bit Version 2310 (Build 16907.20000 Click to Run) - Beta Channel
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Access Version for Database build
    By DefinitelyMaybe in forum Access
    Replies: 7
    Last Post: 12-22-2020, 01:04 PM
  2. Replies: 5
    Last Post: 10-07-2020, 12:07 AM
  3. Replies: 5
    Last Post: 12-09-2019, 05:33 PM
  4. Replies: 3
    Last Post: 09-09-2015, 03:11 PM
  5. Replies: 1
    Last Post: 11-29-2011, 08:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums