Hi,
I have an unbound for that the user enters search criteria into and clicks on a search command. This command then runs some VBA which opens the second form with a SQL statement RecordSource based on the search criteria. The RecordSource is set in the VBA of the first form.
I want to be able to display a message saying that the search returned no results if that is the case. I am trying to do this by setting the 'Visible' propert of different labels to true or false based on whether the ID field of the row source is null or not, but this doesnt seem to be working.
Is there a way that I can count the rows retuned on the record source of the form in order to set the visible properties this way?
Cheers
Foxy
I have an unbound for that the user enters search criteria into and clicks on a search command. This command then runs some VBA which opens the second form with a SQL statement RecordSource based on the search criteria. The RecordSource is set in the VBA of the first form.
I want to be able to display a message saying that the search returned no results if that is the case. I am trying to do this by setting the 'Visible' propert of different labels to true or false based on whether the ID field of the row source is null or not, but this doesnt seem to be working.
Is there a way that I can count the rows retuned on the record source of the form in order to set the visible properties this way?
Cheers
Foxy