Results 1 to 2 of 2
  1. #1
    markjkubicki's Avatar
    markjkubicki is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    496

    32bit 64bit / vba vba7 (which am I running?)

    I need to adjust code for users with a variety of 32 or 64bit, ACCESS 2010 or 2013 ...AURGH (its a problem out of my control -truly)
    So I set up code to test what is running, adding the PtrSafe code to any declare statements in 64bit... but its not working correctly
    ... set up some code to simply trace what's happening

    problem is in the first test the answer is Win32, but then in the second, I get "vba7 - Win64"

    wholly perplexed, Mark

    ... running ACCESS 2013
    MsgBox SysCmd(acSysCmdAccessVer) yields 15.0


    If Win64 Then


    MsgBox "Win64"
    Else
    MsgBox "Win32"
    End If


    If VBA7 Then
    If Win32 Then
    MsgBox "vba7 - win32"
    Else
    MsgBox "vba7 - win64"
    End If
    Else
    If Win32 Then
    MsgBox "NOT vba7 - win32"
    Else
    MsgBox "NOT vba7 - win64"
    End If
    End If

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I do not have a 64bit version to test but I would try something like this.

    If VBA7 Then
    MsgBox "64bit"
    Else
    MsgBox "32Bit"
    End If

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

Similar Threads

  1. .MDB Backend on a 64bit 2012 server
    By chrispl in forum Access
    Replies: 1
    Last Post: 08-09-2013, 09:29 AM
  2. Replies: 1
    Last Post: 12-31-2012, 12:43 PM
  3. Connect 64bit To 32bit Through ODBC, SQL Server 2008
    By 54.69.6d.20 in forum SQL Server
    Replies: 6
    Last Post: 10-08-2012, 06:14 AM
  4. Windows 7 ODBC 64bit
    By boywonder in forum Programming
    Replies: 1
    Last Post: 11-15-2011, 08:23 PM
  5. BSOD on Windows 7 64bit
    By bmcman in forum Access
    Replies: 7
    Last Post: 10-13-2011, 01:52 PM

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