I posted a similar question but maybe complicated it too much and therefore got little help on it
Basically the following IIF in the criteria in my query doesn't return all records when value is NULL; can someone tell me why?:
IIf(IsNull([Forms]![frmClassReport].[ClassName]),(([tblClassesOffered].[Course]) Like "*"),[Forms]![frmClassReport].[ClassName])
PS. I tried just: Like "*" to make sure the query doesn't have some other reason for not returnig all records, but when criteria was just Like "*" it did return all.
Basically the following IIF in the criteria in my query doesn't return all records when value is NULL; can someone tell me why?:
IIf(IsNull([Forms]![frmClassReport].[ClassName]),(([tblClassesOffered].[Course]) Like "*"),[Forms]![frmClassReport].[ClassName])
PS. I tried just: Like "*" to make sure the query doesn't have some other reason for not returnig all records, but when criteria was just Like "*" it did return all.