I have a textbox on one of my Access forms with the following formula in the Control Source. Code: --------- =IIf(DCount("*","[qryTest]","[ID]" & Nz([Field],0) & " And [Field2] = '" & Replace(Nz([Field2]),"'","''") & "'") >0,"Possible...
I have a textbox on one of my Access forms with the following formula in the Control Source.
Code:
=IIf(DCount("*","[qryTest]","[ID]" & Nz([Field],0)
& " And [Field2] = '" & Replace(Nz([Field2]),"'","''") & "'")
>0,"Possible Duplicate","")
I would like to add one more "AND" criteria to the formula, but I have not been able to do so. The other citeria is based an a field that is on the form.