[英]access DLookUp multiple criteria
having trouble with this DlookUp expression it evaluates the first criteria but not the other two, any advice would be great. 这个DlookUp表达式有问题,它会评估第一个标准而不是其他两个,任何建议都会很好。
App_Ref is a text box, PRB responsable is a string, AppCostAdmend is a string App_Ref是一个文本框,PRB Responsable是一个字符串,AppCostAdmend是一个字符串
=DLookUp("[Var_Amount]","Variations","[Var_AppRef] =[App_Ref]" And "[Var_Type] = 'AppCostAdmend'" And "[Var_Description] = 'PRB responsable'")
The AND
has to be part of the criteria too! AND
也必须成为标准的一部分! It works like a SELECT with WHERE ... AND ...! 它的工作方式类似于SELECT with WHERE ... AND ...!
So: 所以:
=DLookUp("[Var_Amount]","Variations","[Var_AppRef] =[App_Ref] And [Var_Type] = 'AppCostAdmend' And [Var_Description] = 'PRB responsable'")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.