Hello all,
I have looked, but don't really know what I am searching for - so have given up and am asking you!
I have a listbox which lists people's names. This list can be filtered using a text box next door. Often, when you use the text box to filter (for example, you enter "smi" to find all the "Smith"'s) there is only 1 entry in the list box (not many people in the list you see)
Upon select the person's name in the list box, a subform updates with the persons' details.
I would like to be able to automatically display the persons details in the subform if there is only 1 person found in the search.
I have tried a couple of things, but am missing how to get VBA to select a particular (e.g. the first and only) list item.
Thank you very much indeed!
I have looked, but don't really know what I am searching for - so have given up and am asking you!
I have a listbox which lists people's names. This list can be filtered using a text box next door. Often, when you use the text box to filter (for example, you enter "smi" to find all the "Smith"'s) there is only 1 entry in the list box (not many people in the list you see)
Upon select the person's name in the list box, a subform updates with the persons' details.
I would like to be able to automatically display the persons details in the subform if there is only 1 person found in the search.
I have tried a couple of things, but am missing how to get VBA to select a particular (e.g. the first and only) list item.
Thank you very much indeed!