This query fails if the control "cboInfra" is an empty string.
The field defaults to "" and I have tried " ".
I have tried various placements of "%" to no avail..
Note. The code is generated by Access from the Query designer.
The field defaults to "" and I have tried " ".
I have tried various placements of "%" to no avail..
Note. The code is generated by Access from the Query designer.
Code:
SELECT Boxes.Collection
FROM Boxes
GROUP BY Boxes.Collection, Boxes.Family, Boxes.Infra
HAVING (((Boxes.Family) ALike [Forms]![Box_Contents]![cboFamily] & "%") AND ((Boxes.Infra) ALike [Forms]![Box_Contents]![cboInfra] & '%'));