【发布时间】:2020-08-31 01:20:04
【问题描述】:
继续这个问题:How to convert 32 bit VBA code into 64 bit VBA code,我写了以下 vba 访问代码:
#If VBA7 Then
Private Declare PtrSafe Function GetOpenFileName Lib "comdlg32.dll" Alias "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long
#Else
'The folowing line is ilegal in Access 2019:
Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long
#End If
此代码在 Access 2013 上运行良好,但在 Access 2019 上失败。Else 案例在 2019 年是非法的。 怎么了?
【问题讨论】:
标签: vba ms-access 32bit-64bit