I have a report that does multiple types of counts
1. Count the number of violations per industry. This works fine.
2. count the industries that meet a certain criteria ...get a syntax error on this
3. count the industries that meet the criteria in item 2 AND are active .... haven't done yet
Can someone look at the dcount I used for item 2 and tell me what I did wrong?
Also how would I modify item 2 to add in the 3rd conditions of being active?
thanks in advance Lhuffst
1. Count the number of violations per industry. This works fine.
2. count the industries that meet a certain criteria ...get a syntax error on this
3. count the industries that meet the criteria in item 2 AND are active .... haven't done yet
Can someone look at the dcount I used for item 2 and tell me what I did wrong?
Also how would I modify item 2 to add in the 3rd conditions of being active?
Code:
=DCount("PermitNo","t_PermitAccounts","PermitNo Not In (""13819"",""13820"",""13829"") & " AND t_PermitOps.ClassCode IN ('FOG', 'BMP') " WHERE t_PermitAccounts.PermitNo = t_PermitOps.PermitNO)")
thanks in advance Lhuffst