>Suppose you have 3 textboxes (you have one) as txt1, txt2, txt3 referring to fields fld1, fld2, fld3 in your SQL :
Grid.init
>with this
> .recordsourcetype = 4
> .recordsource = "select * from mytable "+;
> "where fld1 = trim(thisform.txt1.value) " +;
> "and fld2 = trim(thisform.txt2.value) " +;
> "and fld3 = trim(thisform.txt3.value) " +;
> "into cursor grdCursor"
>endwith
>
>* Lostfocus of textboxes
>thisform.mygrid.refresh
Cetin
Thanks for your suggestion. But I mean that I have set txtbox for my SQL condition. Example , if user input date=05/15/98 in txt1 . I would like my Grid refresh : Sele * from ...... where date >= txt1. Where I must store SQL command. At now I have store in form.load but it not effect my Grid.
Thanks again.