L
Lori
I am trying to create a calculated control on a form. I need to restrict the
count using two criterion. I can only get it to work with one criterion - I
have a correct count if I just use the status criterion below. I need to
also include the peer group restriction. Any ideas on how my syntax is
wrong? Thanks!
This code works (only one criterion):
=DCount("[Vendor_Nbr]","qry_Zip_Code_Vendors","[Status_Code] = 'Active'")
This code won't work (it's what I need to use with 2 criterion):
=DCount("[Vendor_Nbr]","qry_Zip_Code_Vendors","[Status_Code] = 'Active'" And
"[Peer_Group_Code] = '11'")
count using two criterion. I can only get it to work with one criterion - I
have a correct count if I just use the status criterion below. I need to
also include the peer group restriction. Any ideas on how my syntax is
wrong? Thanks!
This code works (only one criterion):
=DCount("[Vendor_Nbr]","qry_Zip_Code_Vendors","[Status_Code] = 'Active'")
This code won't work (it's what I need to use with 2 criterion):
=DCount("[Vendor_Nbr]","qry_Zip_Code_Vendors","[Status_Code] = 'Active'" And
"[Peer_Group_Code] = '11'")