您好我是MS Access脚本的新手,我想知道如何调用函数。我试过这样的话:
在VB.net中 -
oAccess.Run("AuditEditEnd", "zaudTmpFuelDispensed", "zaudFuelDispensed", "ID", "Nz(Me!ID, 0)", "bWasNewRecord")
在MS Access中 -
Function AuditEditEnd(sTable As String, sAudTmpTable As String, sAudTable As String, _
sKeyField As String, lngKeyValue As Long, bWasNewRecord As Boolean) As Boolean
...它是一个"无效的函数调用" 抱歉,我不知道谷歌的确切条款,但是我'我会继续努力。
答案 0 :(得分:1)
尝试不带括号:
AuditEditEnd "zaudTmpFuelDispensed", "zaudFuelDispensed", "ID", "Nz(Me!ID, 0)", "bWasNewRecord"