Dear MS Access Expert.
When I hardcode Like "*" into the query grid criteria section I get the correct results.
When I use the below IIF statement containing Like "*" the recordset is empty although the result should be the same as above.
When I replace the Like "*" with "Peter" in the above statement I correctly get all Records for Peter.
CAn you please explain how I can make this work.
Thank you for your help.
Peter.
When I hardcode Like "*" into the query grid criteria section I get the correct results.
When I use the below IIF statement containing Like "*" the recordset is empty although the result should be the same as above.
Code:
IIf(IsNull([Forms]![Clean Solvent Reports]![Sales]),Like "*",[Forms]![Clean Solvent Reports]![Sales])
When I replace the Like "*" with "Peter" in the above statement I correctly get all Records for Peter.
CAn you please explain how I can make this work.
Thank you for your help.
Peter.