I'd like to be able to replace [4d] with the variable DeclineCd in this DCount but havent got it yet. Maybe its not possible? What should I do different. Thanks!!
This works:
This doesnt work and it returns zero:
This works:
Code:
Closed = DCount("[Account #]", "tblEOMRpt", " [4D] = -1 AND [Rep] = '" & REP & "' ")
This doesnt work and it returns zero:
Code:
Closed = DCount("[Account #]", "tblEOMRpt", "' " & DeclineCd & "' " = -1 And [REP] = "' & Rep & '")