我为客户端继承了这个Access数据库,并负责更新其中的一些内容。不幸的是,我对VBA / Access了解不多。我一直在Runtime error 2465: Can't find the field "|1" referenced
行收到错误DoCmd.SendObject
。我做了很多搜索,这是一个神秘的错误,我无处可去。有人可以向我解释这里有什么问题吗?我假设它是某个地方的语法问题,或者我使用的是变量错误或其他东西。
Private Sub cbCompleted_AfterUpdate()
If cbCompleted = -1 Then
tbCompleted = Date
tbCompleted.Locked = True
Doctor_Name.Locked = True
Department.Locked = True
Start_Date.Locked = True
Specialty.Locked = True
Doctor_.Locked = True
Taxonomy_.Locked = True
DepartmentCombo.Locked = True
UPIN_.Locked = True
SpecialtyCombo.Locked = True
Dim sd As String
Dim dn As String
sd = "" & [Start Date]
dn = "" & [Doctor Name]
DoCmd.SendObject acSendNoObject, , , "Tim,Keith,Yvonne,Sandy,susan@domain.org,Vicki@domain.org", "Tom,Barbara,Rachael,Penny,Troy,bernasue@domain.org", , "Doctor " & dn & " " & "Start Date:" & " " & sd, dn & " " & "is scheduled to start" & sd & vbNewLine & "NPI# :" & [NPI#] & vbNewLine & "Specialty: " & [Speciality#] & vbNewLine & "Department/Practice: " & [Department#] & vbNewLine & "Provider# for HR/Acctg: " & [Doctor#], True
Else
'[snip] Unlock all fields locked above
End If
End Sub
非常感谢