DLookUp 函数不匹配

DLookUp Function not match

为什么当我这样写代码时,结果与 table 不匹配? 代码:

=DLookUp("Quiz","Grade_Fall_2022","Program_ID= '" & DLookUp("ID","Program","Program= '" & [Text_Program1] & "'") & "'" And "TIS_ID= " & [Text_ID])

结果:https://i.stack.imgur.com/c84Xh.png

来源Table:https://i.stack.imgur.com/aywZE.png

试试:

=DLookUp("Quiz","Grade_Fall_2022","Program_ID = '" & DLookUp("ID","Program","Program = '" & [Text_Program1] & "'") & "' And TIS_ID = " & [Text_ID])