josephbupe
Registered User.
- Local time
- Today, 22:34
- Joined
- Jan 31, 2008
- Messages
- 247
Please, I need to modify this query in the AfterUpdate event so that it can search on multiple fields in a table. Currently I only have one field LastName on which it is querying and I want to extend it so that it includes fields: FirstName, OtherNames and PassportNo.
I want to include all possible criteria behind the same txtSearch text box for currying out this operation. The reasons is that the txtSearch box is also used to query in the treeview control on the same form in which I have included a subform with image control to preview faces of persons as the treeview control updates.
Please, help.
Joseph
Code:
If Me.txtSearch.Value <> "" Then
Forms!F_Wanted_Treeview!F_Wanted_Persons_Visual.Form.Filter = "LastName Like '*" & Nz(Me.txtSearch.Value, "") & "*'"
Forms!F_Wanted_Treeview!F_Wanted_Persons_Visual.Form.FilterOn = True
Else
Forms!F_Wanted_Treeview!F_Wanted_Persons_Visual.Form.FilterOn = False
I want to include all possible criteria behind the same txtSearch text box for currying out this operation. The reasons is that the txtSearch box is also used to query in the treeview control on the same form in which I have included a subform with image control to preview faces of persons as the treeview control updates.
Please, help.
Joseph