There has been a lot written on this subject but I can't seem to find the solution.
Desired result: I am writing a dcount in a form textbox that will count the number of records in which the "Status" column = "Pending Paralegal Filing", the "Appeal Deadline" column reflects today's date, and the "Designated Paralegal" = the same value in a form control. Here is my code.
Code:
=DCount("[Status]","CostReportAppealsParalegalWindowQ","[Status]= '" & "Pending Paralegal Filing" & "' And [Appeal Deadline]= #" & Format(Date(),"mm/dd/yyyy") & "#" And "[Designated Paralegal] = '" & [Forms]![Login]![cboUser].[Column](3) & "'")
Based on the result I am getting, I think it is counting the number of times each of those criteria appear in each of those columns and adding the result, as opposed to counting the number of records in which each of those criteria are present. Is there another way to achieve the result I am seeking?