I am using the following function in a report which can be triggered from a form for the associasted record.
I can't seem to get it right. I am trying to count number of records in tbDV matching project ID but I also would like to apply a condition that this count should include only records where in tbDV, field DVStatus field has 'approved'.
Will appreciate some help.
=DCount("[projectid]","tbDV","[ProjectID] = " & [Reports]![rptProjectRecord].[projectid] And "[DVStatus]"="Approved")
I can't seem to get it right. I am trying to count number of records in tbDV matching project ID but I also would like to apply a condition that this count should include only records where in tbDV, field DVStatus field has 'approved'.
Will appreciate some help.
=DCount("[projectid]","tbDV","[ProjectID] = " & [Reports]![rptProjectRecord].[projectid] And "[DVStatus]"="Approved")