Hi,
I have a listbox which displays the results of a query activated by a button click. I also have a textbox. I want the textbox to display the number of records found (like "X records exist." where X is the number of records). I set the textbox's control source to the ListCount value of the listbox. The problem is, when I start the database the textbox shows "1 records exist" even if didn't start the search (by clicking the search button). After entering the required search parameter and clicking the search button the correct number of records found is displayed. How can I stop the textbox displaying 1 record at the beginning when the listbox is empty?
Thank you very much
I have a listbox which displays the results of a query activated by a button click. I also have a textbox. I want the textbox to display the number of records found (like "X records exist." where X is the number of records). I set the textbox's control source to the ListCount value of the listbox. The problem is, when I start the database the textbox shows "1 records exist" even if didn't start the search (by clicking the search button). After entering the required search parameter and clicking the search button the correct number of records found is displayed. How can I stop the textbox displaying 1 record at the beginning when the listbox is empty?
Thank you very much