Windows 10: Compile Error: THe code in this project must be updated for use on 64-bit systems. Please...

Discus and support Compile Error: THe code in this project must be updated for use on 64-bit systems. Please... in Windows 10 Installation and Upgrade to solve the problem; hello! I have a new laptop and I am trying to open my Access program. I am IT challenged to say the least and I need some help.. thank you in... Discussion in 'Windows 10 Installation and Upgrade' started by TereseSchuts, Apr 19, 2019.

  1. Compile Error: THe code in this project must be updated for use on 64-bit systems. Please...


    hello!

    I have a new laptop and I am trying to open my Access program. I am IT challenged to say the least and I need some help.. thank you in advance.. I keep getting the above statement and this


    Option Compare Database

    Option Explicit



    Global glngJobDescID As Variant

    Global gstrJobDescNo As String

    Global gstrUserName As String

    Global glngNewNumber As Long

    Global gstrCriteria As String



    Private Declare Function apiGetUserName Lib "advapi32.dll" Alias _

    "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long



    Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" _

    (ByVal hwnd As Long, ByVal lpString As String) As Long



    Private Declare Function apiGetComputerName Lib "kernel32" Alias _

    "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long



    Function isLoaded(strFrmName As String) As Boolean

    'isLoaded = SysCmd(SYSCMD_GETOBJECTSTATE, acForm, strFrmName)



    If CurrentProject.AllForms(strFrmName).isLoaded Then

    If Forms(strFrmName).CurrentView > 0 Then

    'loaded in any view aside from DESIGN VIEW

    isLoaded = True

    End If

    End If

    End Function



    Function ShowCurrentUser()

    MsgBox "The Current User is: " & CurrentUser()

    End Function



    Function fOSUserName() As Variant

    Dim lngLen As Long, lngX As Long

    Dim strUserName As String

    Dim rs As Recordset



    strUserName = String$(254, 0)

    lngLen = 255

    lngX = apiGetUserName(strUserName, lngLen)



    If lngX <> 0 Then

    fOSUserName = Left$(strUserName, lngLen - 1)

    Else

    fOSUserName = "Anonymous@" & fOSMachineName()

    End If

    Set rs = Nothing

    End Function



    Function SetGrpFtrLoc(rpt As Access.Report, dblGrpFtrLoc As Double)



    'Convert inches to twips

    'dblGrpFtrLoc = dblGrpFtrLoc * 1440



    'Convert centimeters to twips

    dblGrpFtrLoc = dblGrpFtrLoc * 567



    If rpt.Top < dblGrpFtrLoc Then

    rpt.MoveLayout = True

    rpt.NextRecord = False

    rpt.PrintSection = False

    End If



    End Function

    Function fSelModule(stModule) As String



    If IsNumeric(Mid(stModule, 3, 1)) Then fSelModule = stModule Else fSelModule = Left(stModule, 2)



    End Function

    Function CreateQuery(strQryName As String, strSQL As String) As Boolean

    On Error GoTo CreateQuery_Error



    Dim db As Database

    Dim qdf As QueryDef

    Dim intErr As Integer



    On Error Resume Next

    Set db = CurrentDb()

    Set qdf = db.CreateQueryDef(strQryName, strSQL)

    intErr = Err

    If intErr <> 0 Then

    Set qdf = Nothing

    DoCmd.DeleteObject acQuery, strQryName

    Else

    CreateQuery = True

    GoTo CreateQuery_Exit

    End If

    On Error GoTo CreateQuery_Error

    Set qdf = db.CreateQueryDef(strQryName, strSQL)



    CreateQuery = True



    CreateQuery_Exit:

    Set qdf = Nothing

    Set db = Nothing

    Exit Function



    CreateQuery_Error:

    CreateQuery = False

    MsgBox "OOPS! a Query Error" & Chr(13) & Err & ": " & Err.Description, vbCritical, "Create Query"

    Resume CreateQuery_Exit



    End Function

    Function fOSMachineName() As String

    ' This code was originally written by Dev Ashish.

    ' It is not to be altered or distributed,

    ' except as part of an application.

    ' You are free to use it in any application,

    ' provided the copyright notice is left unchanged.

    '

    ' Code Courtesy of

    ' Dev Ashish

    '





    'Returns the computername

    Dim lngLen As Long, lngX As Long

    Dim strCompName As String

    lngLen = 16

    strCompName = String$(lngLen, 0)

    lngX = apiGetComputerName(strCompName, lngLen)

    If lngX <> 0 Then

    fOSMachineName = Left$(strCompName, lngLen)

    Else

    fOSMachineName = ""

    End If

    End Function

    :)
     
    TereseSchuts, Apr 19, 2019
    #1
  2. bbinnard Win User

    Changing Office from 32 bit to 64 bit


    The only compatibility issue with 64-bit Office that I am aware of is with compiled Access applications. An Access app compiled with 64-bit Office will not run on a system with 32-bit Office. So if you have 64-bit Office and want to make a compiled Access app that runs on 32-bit Office you have to recompile the source code on a 32-bit Office system and then use that to distribute to other 32-bit Office machines.
     
    bbinnard, Apr 19, 2019
    #2
  3. Error during iTunes installation in Windows 10 64 bits version

    Hi,

    Thank you for posting in Microsoft Community.

    As you said that " it worked fine with 32-bit version", and there is a problem in installing in 64-bit version. But iTunes application is compatible with both the versions. There may be an issue with the PC which/iTunes application which is not supporting
    the particular PC.

    The error code which you have provided is related to Windows update.

    I suggest you to run the Windows update troubleshooter and check if it helps.

    You can follow the steps:


    • Type Troubleshooting in the search box present in the Taskbar.

    • Select Troubleshooting.

    • Select View all on the top left corner.

    • Run Windows update Troubleshooter.
    Let us know the status of the issue.

    Thanks.
     
    SujataMoktan, Apr 19, 2019
    #3
  4. Brink Win User

    Compile Error: THe code in this project must be updated for use on 64-bit systems. Please...

    NVIDIA Support Plan for 32-bit and 64-bit Operating Systems


    Source: Support Plan for 32-bit and 64-bit Operating Systems | NVIDIA
     
    Brink, Apr 19, 2019
    #4
Thema:

Compile Error: THe code in this project must be updated for use on 64-bit systems. Please...

Loading...
  1. Compile Error: THe code in this project must be updated for use on 64-bit systems. Please... - Similar Threads - Compile Error code

  2. VS Code 64 bit

    in Windows 10 Gaming
    VS Code 64 bit: Hello. I was wondering if it was possible to program a 64 bit program with VS Code https://answers.microsoft.com/en-us/windows/forum/all/vs-code-64-bit/a36c48ca-47ab-467e-a504-efb1803b7ef6
  3. VS Code 64 bit

    in Windows 10 Software and Apps
    VS Code 64 bit: Hello. I was wondering if it was possible to program a 64 bit program with VS Code https://answers.microsoft.com/en-us/windows/forum/all/vs-code-64-bit/a36c48ca-47ab-467e-a504-efb1803b7ef6
  4. Updating to 64 Bit

    in Windows 10 Installation and Upgrade
    Updating to 64 Bit: My current system hardware is as follows.System type 64-bit operating system, ARM-based processor How do I update to a 64 bit windows 10? https://answers.microsoft.com/en-us/windows/forum/all/updating-to-64-bit/c5c88659-c1c8-4879-a391-035b3363314e
  5. Updating to 64 Bit

    in Windows 10 Gaming
    Updating to 64 Bit: My current system hardware is as follows.System type 64-bit operating system, ARM-based processor How do I update to a 64 bit windows 10? https://answers.microsoft.com/en-us/windows/forum/all/updating-to-64-bit/c5c88659-c1c8-4879-a391-035b3363314e
  6. Updating to 64 Bit

    in Windows 10 Software and Apps
    Updating to 64 Bit: My current system hardware is as follows.System type 64-bit operating system, ARM-based processor How do I update to a 64 bit windows 10? https://answers.microsoft.com/en-us/windows/forum/all/updating-to-64-bit/c5c88659-c1c8-4879-a391-035b3363314e
  7. Running 16 bit apps on 64 bit system.

    in AntiVirus, Firewalls and System Security
    Running 16 bit apps on 64 bit system.: Is it definitely possible, although the results are mixed. You just downloadthis VM made by Leecher1337 on github, run install.bat and restart. Try running your app again....
  8. can't compile a program in windows 10 64-bit

    in Windows 10 Software and Apps
    can't compile a program in windows 10 64-bit: 7-3-2020 Stats: windows 10 pro 64 bit Had windows 7 until they changed to windows 10 My programs in windows 10 won't compile. They all ran just fine in Windows 7. The batch files just flash on the screen to fast to read. I tried to use "pause" but that didn't work. EX: of...
  9. windows downloading both 32 bit and 64 bit updates for a 64 bit system

    in Windows 10 Installation and Upgrade
    windows downloading both 32 bit and 64 bit updates for a 64 bit system: My HP Pavilion g7 is a 64 bit system and somehow Windows update is downloading both 32 bit updates and 64 bit updates, which sometimes seems to hang up the loading process ??? can I stop the 32 bit downloads as I probably don't need them? How?...
  10. Is 64 bit OS useful??????.

    in Windows 10 Installation and Upgrade
    Is 64 bit OS useful??????.: Independent of ram, Installing 64 bit OS is useful or not????? Some are saying that installing 64 bit OS is not much useful. As it uses double amount of data than 32 bit. Even we have more than 4 GB ram like 6 GB ram, they are telling that it doesn't improve much...