I have a subform with a group query as the record source
I've put a like operator on one of the grouped fields with wildcards so the user can type text on the main form and have it filter the subform when that person requeries the subform.
The field is AREA
it is grouped
Code:
IIf(IsNull([forms]![frmStatistics]![txtAreasfilter1]),[tblareas]![Area],([tblAreas].[Area]) Like '*" & [forms]![frmStatistics]![txtAreasfilter1] & "*')
I don't know why it comes up with no results.
If I use like
then I get the correct results but when I use the iif I get nothing. If I don't put anything in the text box the true statement is ok and all results show.