cuok
Programmer
- Dec 24, 2001
- 201
Hi friends!
I'm using this routine to search text typed into 'txtgetmed' TextBox and maybe appear in 'txtDetail' TextBox.
its works fine for first search.
What i need is an idea how to continue the search in 'txtDetail' from this 'found'.
here the code:
Thanks in advance
CUOK
I'm using this routine to search text typed into 'txtgetmed' TextBox and maybe appear in 'txtDetail' TextBox.
its works fine for first search.
What i need is an idea how to continue the search in 'txtDetail' from this 'found'.
here the code:
Code:
[B]
Private Sub GoSearch_Click()
Dim strSearch As String, intWhere As Integer
Dim ctlTextToSearch As Variant
With Me!txtDetail
strSearch = txtgetmed
intWhere = InStr(txtDetail, strSearch)
If intWhere Then
.SetFocus
.SelStart = intWhere - 1
.SelLength = Len(strSearch)
Else MsgBox txtgetmed & " Not Found"
End If
End With
End Sub
[/B]
Thanks in advance
CUOK