Just requery your view:
WITH Thisform.pfdbtr.Page2
LOCAL paraID
paraID = .txtID.Value
REQUERY("vwslaccount")
.grid1.Refresh()
ENDWITH
HTH.
>Hello,
>I am a beginner Foxpro 6 programmer, and I have a problem with parameterized views.
>I am trying to use a view as the recordsource for a grid (on a pageframe). >By changing the parameter of the view, I want to change the data in the >grid, and I have written the following code in the click event of the page >frame.>local paraid
>paraid = thisform.pfdbtr.page1.txtid.value
>thisform.pfdbtr.page2.grid1.recordsource = ""
>thisform.pfdbtr.page2.grid1.recordsource = "vwslaccount"
>thisform.refresh
>thisform.pfdbtr.page2.grid1.refresh()
>By changing the parameter paraid, I hope to change the data of the view in >the grid.
>However , in practice the view shows an input box to get the first >parameter when the form opens, and thereafter refuses to refresh and change >the data at all, although paraid has changed. Help!!
>Code snippets appreciated.