mtagliaferri
Registered User.
- Local time
- Today, 17:31
- Joined
- Jul 16, 2006
- Messages
- 550
I have a command to search a record, after I run the command how can I clear the search box from its value ready for another imput?
Thanks
Code:
Private Sub CmdSeach_Click()
Dim strsearch As String
Dim strTxt As String
strTxt = Me.TxtSearchBox.Value
strsearch = "SELECT * from qryCrewMemberList where ((StaffNumber like ""*" & strTxt & "*"") or (Surname like ""*" & strTxt & "*"") or (name like ""*" & strTxt & "*""))"
Me.RecordSource = strsearch
End Sub