I have a form that I want to open to view data on a table.
I have a search box in the header where I can search for a customer record I want by entering their ID. It works.
However, when I open the form initially the first record in the data table populates. I want to avoid this until I enter the value in the search box and execute the code.
I've been scouring google and can't figure out how to do this.
Help appreciated.
Options:
Set the Filter property in form design with criteria that will not return records, set FilterOnLoad to Yes
Don't have RecordSource set in design, set it with code after filter criteria is selected
Use dynamic parameterized query that references combobox as parameter