In my DB [Referrals] I have a form [FRM_Referrals] that users can filter based a parameter query. I am using a macro with the ApplyFilter command to accomplish this. The problem is that when no records match the user's criteria, a blank form is displayed. I have searched for solutions and most seem to point to the dcount function. This could then produce a message box and run a macro that displays all records. Seems like this should be easy but I keep getting an error.
Macro condition DCount("*","QryFindRefRefFac") = 0
Error "This expression is typed incorrectly or it is too complicated to be evaluated...Try simplifying the expression by assigning parts of the expression to variables"
I suspect the issue may lie in the fact that the filter requires a parameter, but I am not sure. Any suggestions? Thanks in advance. I have been hitting this wall for a day now.
Macro condition DCount("*","QryFindRefRefFac") = 0
Error "This expression is typed incorrectly or it is too complicated to be evaluated...Try simplifying the expression by assigning parts of the expression to variables"
I suspect the issue may lie in the fact that the filter requires a parameter, but I am not sure. Any suggestions? Thanks in advance. I have been hitting this wall for a day now.