AC_Alberta
New member
- Local time
- Today, 16:58
- Joined
- Mar 31, 2025
- Messages
- 5
Hi, hope someone has the answer. When transferring a 2010 database from desktop to laptop which only has Runtime 2013, it usually opens without problems.
However when I include fade in/out on open from autoexec macro, Runtime is throwing up the following error message:
"There was an error in compiling this function. The visual Basic module contains a syntax error"
This happens when I include the following:
Public Declare Function SetWindowOpacity Lib "User32" Alias "SetLayeredWindowAttributes" (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Public Declare Sub Sleep Lib "kernel32" (ByVal lngMilliSeconds As Long)
Public Const LWA_ALPHA = &H2
Public Const GWL_EXSTYLE = (-20)
Public Const WS_EX_LAYERED = &H80000
Works perfectly when on Access 2010, but Runtime is a fail.
Any help or suggestions would be greatly appreciated.
However when I include fade in/out on open from autoexec macro, Runtime is throwing up the following error message:
"There was an error in compiling this function. The visual Basic module contains a syntax error"
This happens when I include the following:
Public Declare Function SetWindowOpacity Lib "User32" Alias "SetLayeredWindowAttributes" (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Public Declare Sub Sleep Lib "kernel32" (ByVal lngMilliSeconds As Long)
Public Const LWA_ALPHA = &H2
Public Const GWL_EXSTYLE = (-20)
Public Const WS_EX_LAYERED = &H80000
Works perfectly when on Access 2010, but Runtime is a fail.
Any help or suggestions would be greatly appreciated.