Hi
I am trying to get access window to pop top the front if an event happen get the below code of the internet.
Private Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Long) As Long
Public Function ActivateAccessApp(TargetFullname As String) As Boolean
Dim appTarget As Access.Application
Set appTarget = GetObject(TargetFullname)
ActivateAccessApp = Not SetForegroundWindow(appTarget.hWndAccessApp) = 0
Set appTarget = Nothing
End Function
But cant the error message:
The Code in this Project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with the PtrSafe attribute
Can anyone help with this.
I am trying to get access window to pop top the front if an event happen get the below code of the internet.
Private Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Long) As Long
Public Function ActivateAccessApp(TargetFullname As String) As Boolean
Dim appTarget As Access.Application
Set appTarget = GetObject(TargetFullname)
ActivateAccessApp = Not SetForegroundWindow(appTarget.hWndAccessApp) = 0
Set appTarget = Nothing
End Function
But cant the error message:
The Code in this Project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with the PtrSafe attribute
Can anyone help with this.