I have a search form where I select search values from a pulldown and then click the search/command button. It lists all the summary data on single lines with a command button next to each. I then click on that button and it opens a report with all the detail information for that line.
Two questions :
1. Everytime I open the search form, all the values are already listed. When I select and search for a particular value, those come up and override what is already displayed on the screen. How can the values not be displayed as soon as the form is opened ? It should be a blank form and only display when I click the search/command button. How do I display a message if no records are found based on the selection ?
2. When I find and display the summary data that corresponds to the search criteria, I click on the button to open the report to show the detail. However, instead of only showing the information for that one record, it shows all the information for the search. For example, if I select Apples as my search, it will return 5 records. I select the first record only but the report shows the detail for all 5 records, one after another. How do I get it to only display the record that I selected, not all ?