lnrecno = recno() Select FI Locate Locate For Alltrim(FI.ref) == '2118661' If Found() lnrecno = recno() && keep the recno() for my record SFT.pageframe1.ActivePage=1 SFT.pageframe1.Page1.Cont1.grid1.SetFocus() go (lnrecno) && go to my record Else Messagebox("not found") Endifnow that i can set the focus on my desired record.