SELECT Max(CD4检测.ID) AS ID号, CD4检测.成员档案号, Max(CD4检测.发放时间) AS 最后发放时间, DLookUp("工资数量","CD4检测","[id]=" & DMax("[id]","CD4检测","[成员档案号]='" & [成员档案号] & "'")) AS 工资
FROM CD4检测
GROUP BY CD4检测.成员档案号, DLookUp("工资数量","CD4检测","[id]=" & DMax("[id]","CD4检测","[成员档案号]='" & [成员档案号] & "'"));