simple but complex expression

teel73

Registered User.
Local time
Today, 05:07
Joined
Jun 26, 2007
Messages
205
I am trying to enter an expression that simply counts the amount of records in myTable where the value in the company field is equal to the company name on the report and where the value of [1stDate] in myTable is equal to [bicompleted] in myTable. Here is my expression that produces an error:

Code:
=DCount("[id]","tblGetPendingPercentage","[company] = reports!rptContractorsIncomplete_byVendor_summary![company] and (tblGetPendingPercentage.[1stDateRecvd]) = (tblGetPendingPercentage.[bicompleted])")


Please somebody help me.
 
thanks anyway .. but I figured it out. The expression works now:

Code:
=DCount("[id]","tblGetPendingPercentage","[1stDateRecvd] = [bicompleted] AND ([company] = reports!rptContractorsIncomplete_byVendor_summary![company])")
 

Users who are viewing this thread

Back
Top Bottom