J
James W
Hi there.
I have built a search facility on a form where the user enters the
SearchString into an unbound text box.
A macro then moves the focus to the control containing the data to be
searched.
The macro then runs a FindRecord and, if found, the details are displayed on
the form.
What I want is to trigger a msgbox saying eg. "Search String not found" if
there is no match in the Recordset.
I assume the way to do this is to compare the Control containing the data to
be searched with the value in the unbound Text Box and then based on that
result display the msgbox.
E.g: [Control containing search data] <> [SearchString] Display Msgbox
Thus far I have not been able to get this to work.
Any help would be greatly appreciated.
T.I.A.
I have built a search facility on a form where the user enters the
SearchString into an unbound text box.
A macro then moves the focus to the control containing the data to be
searched.
The macro then runs a FindRecord and, if found, the details are displayed on
the form.
What I want is to trigger a msgbox saying eg. "Search String not found" if
there is no match in the Recordset.
I assume the way to do this is to compare the Control containing the data to
be searched with the value in the unbound Text Box and then based on that
result display the msgbox.
E.g: [Control containing search data] <> [SearchString] Display Msgbox
Thus far I have not been able to get this to work.
Any help would be greatly appreciated.
T.I.A.