thanks
WayneRyan its work good. :cool:
I have to change 2 things
1.
ptr = Instr(1, Me.txtMyControl, Me.txtSearchString)
change to
ptr = Instr(1, Me.txtMyControl, Me.txtSearchString)-1
2. and to setfoucus
but its good just if you serch a string that in just once
for example if you search...