• You can check the number of rows returned:

    =iif(countrows()=0,"no data", "some data")

    but that is for the whole query. Is that what you want?