I'm using Access 97. I have a main form that contains unbound fields used for search criteria and a search button. The search results will be displayed in a subform. The subform has a query as it's data source with the criteria matching to the unbound fields on the main form. When the search button is clicked, the subform is requeried.
This works correctly. However, I'd like to have a msgbox display if the result of the query is empty. I've tried doing this in the load and currents of the subform, but it appears that after the requery, these events don't fire.
any ideas how I can check the result of the query to see if the result is empty?
Thanks.
This works correctly. However, I'd like to have a msgbox display if the result of the query is empty. I've tried doing this in the load and currents of the subform, but it appears that after the requery, these events don't fire.
any ideas how I can check the result of the query to see if the result is empty?
Thanks.