Forum Discussion
Tony2021
Mar 20, 2023Iron Contributor
Dcount Multiple Criteria
Hello Experts, I am trying to add an additional criteria but I am not getting the result I expect. I am not getting any error messages but it returns "yes" for each record and that is not correct ...
- Mar 20, 2023InFBL1NInvStrip: IIf(DCount("*","Import_Excel_FBL1N","[Invoice No Stripped] ='" & [Invoice No Stripped] & "' And [Amount in doc curr] = " & [Invoice amount])>0,"Yes","No")
Tom_van_Stiphout
Mar 20, 2023Iron Contributor
InFBL1NInvStrip: IIf(DCount("*","Import_Excel_FBL1N","[Invoice No Stripped] ='" & [Invoice No Stripped] & "' And [Amount in doc curr] = " & [Invoice amount])>0,"Yes","No")
Tony2021
Mar 20, 2023Iron Contributor
Perfect. I see where the issue is.
"[Invoice No Stripped] ='" & [Invoice No Stripped] & "'"
should be:
"[Invoice No Stripped] ='" & [Invoice No Stripped] & "'
very tricky. thank you. It works great!
"[Invoice No Stripped] ='" & [Invoice No Stripped] & "'"
should be:
"[Invoice No Stripped] ='" & [Invoice No Stripped] & "'
very tricky. thank you. It works great!