L
Lori
I have an unbound field (Vendor_Count) on a subform. I am trying to write
code to count the number of records fitting the criteria for each record
displayed. I tried the following code as an On Current event on the subform
but it doesn't work. It is returning ALL records retrieved by the query (the
source of the subform), instead of just the count for the current record
displayed on the subform. Any ideas? Thanks!
Vendor_Count = DCount("*", "qry_Zip_Code_Vendors", "[Status_Code] = 'Active'
and [Peer_Group_Code] <> 11 ")
code to count the number of records fitting the criteria for each record
displayed. I tried the following code as an On Current event on the subform
but it doesn't work. It is returning ALL records retrieved by the query (the
source of the subform), instead of just the count for the current record
displayed on the subform. Any ideas? Thanks!
Vendor_Count = DCount("*", "qry_Zip_Code_Vendors", "[Status_Code] = 'Active'
and [Peer_Group_Code] <> 11 ")