Dear Experts
In access macro I would like to display the results of an OpenQuery only if the query returns records. I don’t want to open empty query result sheets. I know that DCount() returns the number of the records in a query but I am not sure how to use it without actually opening an IF block in macro. I don’t need the IF block since there is nothing to do in the Then and Else sections.
I tried the RunCode with DCount("*","qryValue-00-Month")>0 but it didn’t work and didn’t display the records.
Thanks in advance.
SalesOp
In access macro I would like to display the results of an OpenQuery only if the query returns records. I don’t want to open empty query result sheets. I know that DCount() returns the number of the records in a query but I am not sure how to use it without actually opening an IF block in macro. I don’t need the IF block since there is nothing to do in the Then and Else sections.
I tried the RunCode with DCount("*","qryValue-00-Month")>0 but it didn’t work and didn’t display the records.
Thanks in advance.
SalesOp