In my table, there are group numbers that begin with DH, PD, and many other values. I am trying to come up with a way to collect all the group numbers that begin with DH or PD and count them separately from the rest of the groups.
The criteria in my query is:
IIf([GroupNumber] Like "DH*" & "PD*", 1, 0)
All I get is the 0. When I only have one value after Like (either "DH*" or "PD*" the query provides the 1).
Based on what I have read, the above should work. What am I doing wrong? The Group Number is a text field.
The criteria in my query is:
IIf([GroupNumber] Like "DH*" & "PD*", 1, 0)
All I get is the 0. When I only have one value after Like (either "DH*" or "PD*" the query provides the 1).
Based on what I have read, the above should work. What am I doing wrong? The Group Number is a text field.